Assign to countries
Show or hide an option set based on the country a customer is browsing from.
Some options are only relevant in certain markets — for example, a delivery-date picker for countries where you offer local delivery, engraving in a language your workshop supports, or a customs declaration field for export orders.
The Countries tab lets you control this with a single include-or-exclude list.
Before you start
Make sure you have an option set open in the builder and select Countries in the left sidebar.
Country rules are available only on certain plans. If Country restrictions is unavailable, see Compare plans.
Country restrictions are off by default, so the option set is shown in all countries.
Steps

Worked examples
A delivery-date picker only where you deliver
Include — your delivery countries
No engraving on exports, because of lead times
Include — your home country only
Everything except two countries you cannot ship personalized goods to
Exclude — those two countries
Local pickup options for one country
Include — that country
A customs declaration field for international orders only
Exclude — your home country
How the country is determined
The country is based on the storefront's localization — specifically, the country or market the visitor is currently browsing. Shopify determines this based on the visitor's location and any country selector provided by your theme.
There are two important things to keep in mind:
It uses the browsing country, not the shipping address. The customer has not reached checkout yet, so there is no shipping address for the app to use.
Changing the country in your theme's country selector changes which option sets are shown. The change takes effect on the next page load.
Notes
Country restrictions narrow the scope of an option set; they never expand it. The product rule still determines which products are in scope.
With Include selected and no countries chosen, the option set will not be displayed anywhere. Select at least one country or turn off the restriction.
The builder's live preview does not apply country rules. To test them, use your storefront and switch countries using your theme's country selector.
Country rules apply to the Online Store. POS orders are placed in person, so country restrictions do not apply to them.
Last updated
Was this helpful?