Hi! I imported products into the store, and in the export file there was the minimum order quantity and the increment step—all of that assigned perfectly. However, I added a new group and noticed that they’re now set to 0. It’s tough to do this manually because I have around 200 products. How can I assign “Quantity Rules” from one group to another?
And my second question on this topic: since dozens of variants have a different minimum threshold than the default, and because there are quite a few products, plus 4 languages (which quadruples the manual clicking), is there an easier way to set a minimum value for these variants than clicking on each product, editing manually, switching to the next language, editing manually again, and so on for each language? I’m using WPML for translations.
This min/max/step data is product metadata. To copy that from one group to all others for many products, I believe the best option would be with a Products Export and Import, and modifying that metadata through this import process.
Basically you can go to Products -> Export and export a CSV file with all products and all metadata. Then open this CSV file and among that data will also be min/max/step data with keys such as b2bking_quantity_product_min_1234 where 1234 is the ID of a group.
Now we can copy those column values to the columns of other groups such as b2bking_quantity_product_min_4567 etc, save the CSV, and re-import it.
A similar process could be applied to WPML translations, but it may be more difficult to distinguish which item rows correspond to translations, I am not sure if there's a simple way to do that.
is there an easier way to set a minimum value for these variants than clicking on each product, editing manually,
Other than imports, I believe another option could be to create 'minimum order' dynamic rules that apply in bulk to multiple variations or products. These rules can be a better way to configure things if you have many products / categories / variations with the same values, e.g.:
Regarding the tutorial, can I just export the SKU and the regular min/step/max quantity, and then when I import it back, the rest of the data (including translations) won’t change, but only the quantity values will be updated? Or do I need to export all the data, so that after importing I have everything correctly linked?
I downloaded the export and I see the field “b2bking_apply_minmaxstep_individual_variations,” which is set to “no” everywhere. I haven’t seen any function to enable min/max/step for variations, but I do have different values for them, so it would be handy. Is it enough if I just enter a number in this column for each variation and then import it so that it works?
Plus, a question for the future: new product groups will definitely be created. Will I have to do this every time? Or if I add these values to the “regular” field, will each new group automatically have those values?
Okay, I managed to import the quantities to “regular” in Quantity rules, and for the other languages in WPML settings, I set “copy,” and everything works. However, I’m interested in two things:
Is it possible to also set the minimum, maximum, and step (min/max/step) for variants?
For example, we have a T-shirt:
Green T-shirt: minimum 5
Black T-shirt: minimum 10
Red T-shirt: minimum 15
Can this be configured?
Additionally, is there a way to upload these settings via import rather than configuring them manually for each product in “dynamic rules”? I have quite a lot of products, and—as I mentioned before—after exporting, I noticed that the entry “b2bking_apply_minmaxstep_individual_variations” is created. Is that what handles this functionality, and how can it be activated?
What happens if I add a new user group?
If I already have min/max/step set in “regular,” those values import just fine in the default language. But when I add a new group, I wanted to repeat the steps I took before and manually set “copy” in WPML → Settings → Custom Fields Translation. However, I don’t see the ID for that new group—only the old ones. Interestingly, the quantities in Quantity rules did copy over and work. I’m wondering why that is, so I’ll know what to do in the future when I add new groups.
I’m also wondering if this might be the “B2C” group—because I don’t have it, there are no users in it, and I haven’t done anything with it, but I set it to “copy” earlier. What do you think?
Hi! I imported products into the store, and in the export file there was the minimum order quantity and the increment step—all of that assigned perfectly. However, I added a new group and noticed that they’re now set to 0. It’s tough to do this manually because I have around 200 products. How can I assign “Quantity Rules” from one group to another?
Best regards.
And my second question on this topic: since dozens of variants have a different minimum threshold than the default, and because there are quite a few products, plus 4 languages (which quadruples the manual clicking), is there an easier way to set a minimum value for these variants than clicking on each product, editing manually, switching to the next language, editing manually again, and so on for each language? I’m using WPML for translations.
Hello Patryk,
This min/max/step data is product metadata. To copy that from one group to all others for many products, I believe the best option would be with a Products Export and Import, and modifying that metadata through this import process.
We have a guide here that explains how the metadata for this works: https://woocommerce-b2b-plugin.com/docs/quantity-rules-min-max-step-on-product-page/#3-toc-title
Basically you can go to Products -> Export and export a CSV file with all products and all metadata. Then open this CSV file and among that data will also be min/max/step data with keys such as b2bking_quantity_product_min_1234 where 1234 is the ID of a group.
Now we can copy those column values to the columns of other groups such as b2bking_quantity_product_min_4567 etc, save the CSV, and re-import it.
A similar process could be applied to WPML translations, but it may be more difficult to distinguish which item rows correspond to translations, I am not sure if there's a simple way to do that.
is there an easier way to set a minimum value for these variants than clicking on each product, editing manually,
Other than imports, I believe another option could be to create 'minimum order' dynamic rules that apply in bulk to multiple variations or products. These rules can be a better way to configure things if you have many products / categories / variations with the same values, e.g.:
Kind regards,
Stefan
Regarding the tutorial, can I just export the SKU and the regular min/step/max quantity, and then when I import it back, the rest of the data (including translations) won’t change, but only the quantity values will be updated? Or do I need to export all the data, so that after importing I have everything correctly linked?
I downloaded the export and I see the field “b2bking_apply_minmaxstep_individual_variations,” which is set to “no” everywhere. I haven’t seen any function to enable min/max/step for variations, but I do have different values for them, so it would be handy. Is it enough if I just enter a number in this column for each variation and then import it so that it works?
Plus, a question for the future: new product groups will definitely be created. Will I have to do this every time? Or if I add these values to the “regular” field, will each new group automatically have those values?
Okay, I managed to import the quantities to “regular” in Quantity rules, and for the other languages in WPML settings, I set “copy,” and everything works. However, I’m interested in two things:
Can this be configured? Additionally, is there a way to upload these settings via import rather than configuring them manually for each product in “dynamic rules”? I have quite a lot of products, and—as I mentioned before—after exporting, I noticed that the entry “b2bking_apply_minmaxstep_individual_variations” is created. Is that what handles this functionality, and how can it be activated?
I’m also wondering if this might be the “B2C” group—because I don’t have it, there are no users in it, and I haven’t done anything with it, but I set it to “copy” earlier. What do you think?