Plugin Author
WP Trio
(@wooelements)
In 1.x -> 2.x migration it was necessary to create one ruleset per shipping method. For example, if you had 3 zones and 3 shipping methods in each zone, you would have 9 rulesets after 2.x migration.
In some rare cases migration could have created duplicate rulesets. However, more likely reason is that rulesets are for different zones. You can delete duplicates if you are sure they are exact duplicates and not for different zones.
In 2.x you can have different conditions for different zones for the same shipping method just like in 1.x. Technically shipping methods are different in each zone even if they have same type (e.g. flat rate) and name.
Hope this clarifies!
Thanks. How can I tell the difference between the ruleset for one zone or another?
I have three separate shipping zones and UPS, as an example, is in all three. After migrating from 1.x -> 2.x, I have 6 rulesets on the shipping conditions page that are all called “UPS”. There is no visible distinction between any of them. Nowhere does it say anything in any of the new rulesets about what zone it applies to.
If I wanted to create a ruleset that applies only to a particular zone, how would I do that? When I click on “add ruleset” there is no way that I can see to specify a zone.
Plugin Author
WP Trio
(@wooelements)
The only way is to open the ruleset and then click on the shipping method select field in the actions. The selected one is greyed out under a shipping zone. Please see this image for clarification: https://wooelements.com/images/2-migration.png
Similarly when you create a ruleset, you can select shipping methods from one or more shipping zones.
Unfortunately it’s bit unclear when migrating from 1.x but I hope this makes sense.
Got it. Thanks.
Yes, that is pretty unintuitive for a migrated list of conditions. I have several duplicates that were created for whatever reason, but now I understand how to clean them up.