Documentation
GeoBlock
Per-Product Rules

Per-Product Rules

Each product has its own GeoBlock - Country Restrictions meta box. This meta box appears on the product edit screen and supports all standard WooCommerce product types.

Accessing the meta box

Open any product in Products → All Products (or add a new product). The GeoBlock meta box appears in the normal position below the product editor.


Rule Type

Choose how the country list is interpreted:

OptionBehaviour
Exclude (default)Customers from the listed countries are restricted
IncludeOnly customers from the listed countries can access/purchase the product

Exclude mode example: Add United States (US) and Canada (CA) - all other countries can purchase freely. US and CA visitors are restricted according to the global Restriction Mode.

Include mode example: Add Germany (DE) and Austria (AT) - only visitors from Germany and Austria can access/purchase the product. All other countries are restricted.


Country Selector

The country selector is a searchable multi-select dropdown powered by Select2. You can:

  • Type a country name (e.g. "United Kingdom") to filter the list.
  • Type a 2-letter ISO 3166-1 code (e.g. "GB") to jump directly to the country.
  • Select multiple countries in one session.
  • Remove individual countries by clicking the × next to them.

Leaving the selector empty removes all restrictions from the product. The meta data is deleted from the database rather than stored as an empty array.


Rule Summary

Below the country selector, a live summary describes the active rule in plain English:

  • No restrictions set - this product is available to customers in all countries.
  • Only customers from Germany (DE), Austria (AT) can purchase this product.
  • Customers from United States (US), Canada (CA) cannot purchase this product.

The summary updates immediately when you change the rule type or add/remove countries.


Variable Products and Variations

Rules are always set on the parent product and apply to all its variations. You do not need to (and cannot) set rules on individual variations. When a restriction check is performed on a variation, GeoBlock automatically resolves to the parent product's rules.

Per-variation rules are available in GeoBlock Pro.