| Next revision | Previous revision |
| v:2.0:templates:blacklist_whitelist_countries [2018/06/04 15:55] – created marija | v:2.0:templates:blacklist_whitelist_countries [2021/06/04 12:54] (current) – [To only allow specific countries/regions:] adam |
|---|
| ========Limit Checkout to Specific Countries (Whitelist or Blacklist)====== | ========Limit Checkout to Specific Countries or Regions====== |
| **How do I know which to choose – whitelist or blacklist?** | ===== How do I know which to choose – allow or block? ===== |
| |
| You'll want to select blacklist or whitelist depending upon countries you need to click. If you're only shipping to one country, you'll want to select "Whitelist", only requiring you to check one box from the list, designating that country as allowed. If you are shipping to most places, but just need to exclude a few countries, you'll select "Blacklist" and check off the countries that you can't ship to. If in doubt, feel free to [[http://foxy.io/contact_us|contact us]]. | You'll want to select allow or block depending upon the amount of countries or regions you're wanting to restrict to. If you're only shipping to a small handful of countries or regions, you'll want to select allow, only requiring you to check those few boxes from the list, designating that country/region as allowed. If you are shipping to most places, but just need to exclude a few countries, you'll select block and check off the countries/regions that you can't ship to. If in doubt, feel free to [[http://foxy.io/contact_us|contact us]]. |
| |
| **To Whitelist (only allow) specific countries:** | ==== To only allow specific countries or regions: ==== |
| | - Go to your templates configuration in the Foxy admin. Here's a link: https://admin.foxycart.com/admin.php?ThisAction=TemplateConfig |
| - Go to your templates configuration in the Foxy admin. Here's a link: https://admin.foxycart.com/admin.php?ThisAction=TemplateConfig | - Scroll down to "Customize allowlist/blocklist filtering of countries and regions." |
| - If not checked, check the box. | - If not checked, check the box. |
| - Scroll down to "Customize whitelist/blacklist filtering of countries and regions." | - Change "filter type:" to "Allowlist". |
| - Change "filter type:" to "Whitelist". | - Scroll until you see the countries or regions for which you'd like to offer shipping and select them. |
| - Scroll until you see the countries for which you'd like to offer shipping and select them. | |
| - Scroll down and click the "Update" button to save. | - Scroll down and click the "Update" button to save. |
| - Test the cart/checkout to ensure that only your whitelisted countries can be selected. | - Test the cart/checkout to ensure that only your allowed countries/regions can be selected. |
| |
| **To Blacklist (not allow) specific countries:** | ==== To block specific countries or regions: ==== |
| | - Go to your templates configuration in the Foxy admin. Here's a link: https://admin.foxycart.com/admin.php?ThisAction=TemplateConfig |
| - Go to your templates configuration in the Foxy admin. Here's a link: https://admin.foxycart.com/admin.php?ThisAction=TemplateConfig | - Scroll down to "Customize allowlist/blocklist filtering of countries and regions." |
| - If not checked, check the box. | - If not checked, check the box. |
| - Scroll down to "Customize whitelist/blacklist filtering of countries and regions." | - Change "filter type:" to "Blocklist". |
| - Change "filter type:" to "Blacklist". | - Scroll until you see the countries or regions to which you cannot ship and select them. |
| - Scroll until you see the countries to which you cannot ship and select them. | |
| - Scroll down and click the "Update" button to save. | - Scroll down and click the "Update" button to save. |
| - Test the cart/checkout to ensure that blacklisted countries cannot be selected. | - Test the cart/checkout to ensure that blocked countries/regions cannot be selected. |