⌘K

How rules work together

Last updated

Version note: This guide covers the v1.2.0 development build. Settings may differ from your installed Marketplace version. Verify your version before following these steps; runtime compatibility has not yet been confirmed.

Global, the applicable role rule, the detected-country rule, and failed order conditions contribute to a combined set of restricted products and categories. Any applicable restriction can keep a product unavailable. There is no allow rule that overrides the others.

SituationExpected source-defined result
Product is globally restricted but absent from a role ruleStill restricted
Customer meets order conditions, but their country restricts the productStill restricted
Role rule is disabled, but a category is globally restrictedStill restricted
Order rule is enabled but has no active conditionsThat order rule adds no restriction
Visitor has no matching role rule and no detected-country ruleGlobal and order rules may still apply
Account can manage WooCommerceRestriction calculation is bypassed

Category behaviour needs careful testing. Main catalogue filtering uses a category tax query, while direct product checks compare assigned category IDs. Do not assume that selecting a parent category gives identical coverage for products assigned only to child categories across every path. Include the relevant child categories explicitly and test direct URLs as well as catalogue listings.

Still stuck? How can we help? Get Help