Product Icon

Country and State Restrictions for WooCommerce

Restrict products, pages, payment methods, or page content by country or state, with automatic country detection.
Choose a billing option
$79
Save 20%
$158 $126.40

Subscription includes

  • Product updates and improvements
  • Customer support
  • 30-day money-back guarantee

Country and State Restrictions sets where each product can be sold, where WooCommerce only sets it for the whole store. Sell plants only within the United States but never to Hawaii, keep bulky furniture at home, and stop orders that can’t be delivered.

  • Sell only to, or never to, chosen countries or states per product.
  • Store-wide rules for categories, tags or chosen products.
  • Restricted products shown with a note and no add to cart button.
  • Or hidden from the shop, search, blocks and related products.
  • The customer’s place from their address or geolocation.
  • A “Delivering to” bar so customers pick their country before they shop.
  • Checkout checks every item against the delivery address.
  • Product exceptions that ignore the store-wide rules.

How it works

How Country and State Restrictions works

Features

Product shipping settings with Sell only to and Never sell to, and the store-wide rule for live plants

PER PRODUCT

Choose where each product can be sold

In a product’s Shipping tab, choose the countries or states it can only be sold to, or never sold to, such as plants only within the United States but never to Hawaii or Alaska. Store-wide rules can cover all products, categories, tags or chosen products, and each variation can be sold to fewer places than its product.

  • Countries and states
  • Per product, per category or store-wide
  • Per variation, such as a large size that can’t go abroad

WHAT CUSTOMERS SEE

“Not available in your region”

Restricted products show a message such as “Not available in your region” instead of the Add to cart button, and the price can be hidden too. Customers ordering for somewhere else can change their country right there.

  • Your own restriction message
  • Hide the price as well, if you like
  • A link to change the country
Product page showing Not available in your region instead of Add to cart
Shop page with one product marked Not available in your region next to one that can be bought

IN THE SHOP

Restricted products, clearly marked

In the shop, category pages and product blocks, restricted products say they’re not available where the customer is, while everything else can be bought as usual. Or hide them from the shop, search and related products altogether.

  • Shown as unavailable, or hidden
  • Variations that can’t go there are greyed out
  • An optional “Delivering to” bar to pick a country

STORE-WIDE RULES

Rules for whole categories

Write a rule once for a category, a tag or chosen products, such as “Live plants: only to United States, never to Alaska and Hawaii”, and it covers every product in it, including subcategories. A product can ignore the store-wide rules and use only its own settings.

  • Categories include their subcategories
  • Switch rules on and off
  • Products can use only their own settings
Country rule for live plants: only to the United States, never to Alaska and Hawaii
Cash on delivery offered only in Oregon and Washington

PAYMENT METHODS

Payment methods by country and state

Offer a payment method only in some countries or states, or never in some: cash on delivery only in Oregon and Washington, no checks from Canada. Choose whether the billing or shipping address counts, at checkout, in the Checkout block and on the pay for order page.

  • Offer only in, or never offer in
  • Billing or shipping address
  • Classic checkout and the Checkout block

PAGES AND THE WHOLE SITE

Close pages, or the site, to some places

Close chosen pages to some countries or states, or close the whole site: visitors from those places are sent to another page or site, such as your store for their country, or see a short message. Show text only to customers in some places with a shortcode, such as a free shipping note.

  • Close single pages or the whole site
  • Send visitors to your store for their country
  • Content shown only in some places
Closed page message: Not available in your region, with a button to the home page
Settings for finding a new visitor's country and for the Delivering to bar

CUSTOMER’S COUNTRY

The customer’s country, found automatically

Restrictions use the customer’s shipping address, or their billing address. Until they enter one, the extension can find their country from their IP address with WooCommerce’s MaxMind Geolocation, or the country Cloudflare or your host sends. No outside service is contacted.

  • Shipping address first, then billing
  • IP country for new visitors
  • No outside service

VARIATIONS

One size can ship abroad, another can’t

Each variation can be sold to fewer places than its product, such as a large size that is too costly to send abroad. Variations that can’t go to the customer’s place are greyed out in the product’s option lists.

  • Sell only to and never sell to, per variation
  • Greyed out where they can’t go
  • Checked again at checkout
A variation's own Sell only to and Never sell to settings
Delivering to Canada bar above a product that is not available in the customer's region

DELIVERING TO

Customers pick where they shop

An optional “Delivering to” bar at the top of the site shows the customer’s country with a way to change it, so they see what they can buy before they reach checkout. Place the same picker anywhere with a shortcode. Checkout still stops items that can’t go to the delivery address.

  • Shown on every page except checkout
  • Change the country in one click
  • Checkout stops what can’t ship

Country restrictions for WooCommerce, per product and per state

WooCommerce lets you choose the countries your whole store sells to. Country and State Restrictions adds country restrictions at the level of single products, variations and categories, so a live plant can stay within the United States, a large table can stay off international orders, and a product that isn’t licensed in some states can’t be ordered from there.

Restricted products can stay visible with a clear message or be hidden from the shop, and checkout always stops items that can’t go to the delivery address. The same rules cover payment methods by country or state, pages, and even the whole site, and the customer’s country can come from their address or from WooCommerce geolocation before they enter one.

Common setups

  • Live plants: only within the United States, never to Hawaii or Alaska.
  • Bulky furniture: never sold abroad, set on the product’s Shipping tab.
  • Cash on delivery: offered only in the states you deliver to yourself.
  • Regional stores: visitors from Canada sent to your Canadian store.
  • Local offers: a free shipping note shown only to customers in the US and Canada.
  • Licensed products: sold only in the countries where they’re licensed.

Frequently asked questions

How does it know where the customer is?

From their shipping address, or their billing address. Before they enter one, it can find their country from their IP address, using WooCommerce’s geolocation or the country sent by Cloudflare or your host.

Can a customer still order a restricted product?

No. Whatever is shown in the shop, checkout stops orders with items that can’t go to the delivery address, with a message naming the item.

Can I restrict by state, not just country?

Yes. Rules can use states as well as countries, such as never to Hawaii. State rules are checked once the customer enters their address.

Can I hide restricted products completely?

Yes. Hide them from the shop, categories, search, product blocks and related products, or show them with a restriction message.

Will I be locked out if I close the site to my own country?

No. Logged-in store managers always see the whole site.

Does it contact an outside service?

No. Country detection uses WooCommerce’s own geolocation or the country your host or Cloudflare sends.

Related Products

Price $279 annually
Rated 3.9 out of 5 stars
Price $79 annually
Rated 3.4 out of 5 stars
Price $59 annually
Rated 3.1 out of 5 stars
Price $49 annually
Rated 4.1 out of 5 stars
Price $109 annually
Rated 2 out of 5 stars
Price $109 annually
Rated 2.8 out of 5 stars
Price $109 annually
Rated 2.5 out of 5 stars
Price $199 annually
Rated 4 out of 5 stars
Price $39 annually
Rated 2.8 out of 5 stars
Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.