Documentation
GeoBlock Pro
Bulk Rules

Bulk Rules

Go to WooCommerce → GeoBlock → Bulk Rules to restrict groups of products without editing each product individually.


Creating a Bulk Rule

Add a rule

Click Add New Bulk Rule.

Choose the rule type

Under Restriction rule type, choose Categories, Tags, Attributes or Global.

Select what it applies to

Pick one or more categories, tags or attribute terms (not needed for Global).

Choose the mode

Exclude selected countries blocks the listed countries. Include selected countries allows only the listed countries and restricts everyone else.

Pick the countries

Select the countries under Restricted Countries, then click Save Settings.

A rule without any countries is ignored and is not saved.


Rule Types

TypeApplies to
CategoriesProducts in the selected categories and all of their child categories
TagsProducts with any of the selected tags
AttributesProducts with any of the selected attribute terms (e.g. Brand = Acme) - useful for brand-level distribution agreements
GlobalEvery product in the store
⚠️

A Global rule applies to your whole catalog. For example, a Global Exclude rule for the United States restricts every product for US visitors. Use Rule Testing under Advanced to check the result before going live.


How Rules Combine

  1. If a product variation has its own rule, that rule alone decides for the variation.
  2. Otherwise, a product is restricted if its per-product rule or any matching bulk rule restricts it.

There is no rule priority: every matching rule is checked, and any rule that restricts the visitor's country restricts the product. The order of bulk rules doesn't matter.

Because any matching rule restricts, a per-product Include rule can't exempt a product from a bulk rule. Narrow the bulk rule's categories, tags or attributes instead.


Where Bulk Rules Are Stored

Bulk rules are saved in the bulk_rules key of the geoblock_settings option. See the Developer Reference.

⚠️

Reset to Defaults resets the settings only. Bulk rules, payment rules and per-product rules are kept.