Public Ticket #2687474

Dynamic rule import

Closed
Comments
10 Tickets 7
Jonas Pedersen started the conversation 6 years ago on February 10, 2021 at 1:54pm

Hi,

Can you provide me with the meta data for importing dynamic rules via. wp all import?

I need fixed price, 1 product, for 1 user, and quantity minimum. 

Do you know if i should import to dynamic rule, or is it something else i should import to?
And should it be imported as "new dynamic rule" or excisting? - i don't have any rules yet, but im going to import the rules for all of my products and users from ERP system.

Does it use serial data?

2,762
KingsPlugins replied 6 years ago on February 16, 2021 at 10:19pm

Hi,

Apologies for the late reply - we are seeing a high volume of tickets.

Unfortunately I have only little knowledge about using WP All Import so I can't give any comment on how that plugin should be used. Their support may better be able to help you with that.

I believe you would have to import it as a new rule.

The meta data would be the same as the one in this article - https://b2bkingplugin.com/docs/import-or-setup-dynamic-rules-programatically/ - it doesn't matter what software you use to import it.

For fixed price, 1 product, 1 user:

  • b2bking_rule_what = fixed_price
  • b2bking_rule_applies = product_123    (123 is the product id)
  • b2bking_rule_who = user_456    (456 is the user id)
  • b2bking_rule_howmuch = 100   (100 is the price, e.g. $100)

For minimum quantity, 1 product, 1 user:

  • b2bking_rule_what = minimum_order
  • b2bking_rule_applies = product_123    (123 is the product id)
  • b2bking_rule_who = user_456    (456 is the user id)
  • b2bking_rule_howmuch = 100   (100 is the quantity)
  • b2bking_rule_quantity_value = quantity

If you are unsure about what metadata to use, you can create the rule manually and check the metadata in the wp_postmeta table.

Sign In