{"id":2847,"date":"2023-09-21T08:05:25","date_gmt":"2023-09-21T08:05:25","guid":{"rendered":"https:\/\/addify.store\/documentation\/?page_id=2847"},"modified":"2025-01-03T06:38:37","modified_gmt":"2025-01-03T06:38:37","slug":"setting-up-country-restrictions-for-woocommerce","status":"publish","type":"page","link":"https:\/\/addify.store\/documentation\/woocommerce\/country-restrictions-for-woocommerce\/setting-up-country-restrictions-for-woocommerce\/","title":{"rendered":"Setting Up Country Restrictions for WooCommerce &#8211; Rule Creation"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Create Multiple Rules to Enable Desired Restrictions<\/h3>\n\n\n\n<p>Go to <em>WooCommerce &gt; Country Restrictions &gt; Rules &gt; Add New Rule.<\/em> You will see the following settings:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Rule Title: <\/strong>Add a desired title for each rule<\/li>\n\n\n\n<li><strong>Choose countries: <\/strong>Choose countries for restrictions (Geo-location must be enabled)\u00a0<\/li>\n\n\n\n<li><strong>Restriction Mode: <\/strong>Choose to restrict entire products, prices, or add to cart button:\n<ul class=\"wp-block-list\">\n<li><strong>Restrict Products:<\/strong> Hide certain products from selected countries\u00a0<\/li>\n\n\n\n<li><strong>Price and Add-to-Cart:<\/strong> Hide price and add-to-cart from selected countries\u00a0<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Choose from the following to apply restrictions:\n<ul class=\"wp-block-list\">\n<li><strong>Products: <\/strong>Choose products for the selected action<\/li>\n\n\n\n<li><strong>Categories:<\/strong> Choose product categories for selected action<\/li>\n\n\n\n<li><strong>Tags: <\/strong>Choose product tags for the selected action<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Restricted Products Options: Choose to apply the following actions on restricted items:\n<ul class=\"wp-block-list\">\n<li><strong>Restriction Message: <\/strong>Add a custom message to replace hidden products\u00a0<\/li>\n\n\n\n<li><strong>Select Store URL: <\/strong>Select a store page to divert users if they access the product directly<\/li>\n\n\n\n<li><strong>Custom URL:<\/strong> Enter a website link to redirect users if they access directly<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Select Price Visibility:<\/strong> Choose to show or hide the price for chosen items.\n<ul class=\"wp-block-list\">\n<li><strong>Add Text When Prices are Restricted:<\/strong> In case you wish to hide price, add custom text to replace prices<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Select Add to Cart Button Visibility: <\/strong>Choose to show or hide the add-to-cart button.\u00a0<\/li>\n\n\n\n<li><strong>Restrict Add-to-Cart<\/strong>: In case you wish to hide add-to-cart, choose from the following:<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Hide add-to-cart:<\/strong> Completely hide add-to-cart<\/li>\n\n\n\n<li><strong>Replace with a custom button: <\/strong>Add custom text and link<\/li>\n\n\n\n<li><strong>Show a message:<\/strong> Display a custom message<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXdWOzpn9dWUlPBxb92rQjX3k8i-snkOfhsqNfLZOZCIFHjr_K7oglDEU-x2iKj9twgxgN_54aSYNh_FAXLwa2RgvtfOInK6cnSLH18PlPeiBD7yS8y_5C_ZGi94AodyFn6jHEZhSQ?key=yiGPZTzgSgQL5v2HtTnIL4XN\" alt=\"\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Create Multiple Rules to Enable Desired Restrictions Go to WooCommerce &gt; Country Restrictions &gt; Rules &gt; Add New Rule. You will see the following settings:<\/p>\n","protected":false},"author":1,"featured_media":1753,"parent":2836,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"template-parts\/documentation-template.php","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"class_list":["post-2847","page","type-page","status-publish","has-post-thumbnail","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Setting Up Country Restrictions for WooCommerce - Rule Creation - Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/addify.store\/documentation\/woocommerce\/country-restrictions-for-woocommerce\/setting-up-country-restrictions-for-woocommerce\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setting Up Country Restrictions for WooCommerce - Rule Creation - Documentation\" \/>\n<meta property=\"og:description\" content=\"Create Multiple Rules to Enable Desired Restrictions Go to WooCommerce &gt; Country Restrictions &gt; Rules &gt; Add New Rule. You will see the following settings:\" \/>\n<meta property=\"og:url\" content=\"https:\/\/addify.store\/documentation\/woocommerce\/country-restrictions-for-woocommerce\/setting-up-country-restrictions-for-woocommerce\/\" \/>\n<meta property=\"og:site_name\" content=\"Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-03T06:38:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/addify.store\/documentation\/wp-content\/uploads\/2023\/06\/database-usage.png\" \/>\n\t<meta property=\"og:image:width\" content=\"512\" \/>\n\t<meta property=\"og:image:height\" content=\"512\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/country-restrictions-for-woocommerce\\\/setting-up-country-restrictions-for-woocommerce\\\/\",\"url\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/country-restrictions-for-woocommerce\\\/setting-up-country-restrictions-for-woocommerce\\\/\",\"name\":\"Setting Up Country Restrictions for WooCommerce - Rule Creation - Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/country-restrictions-for-woocommerce\\\/setting-up-country-restrictions-for-woocommerce\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/country-restrictions-for-woocommerce\\\/setting-up-country-restrictions-for-woocommerce\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/addify.store\\\/documentation\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/database-usage.png\",\"datePublished\":\"2023-09-21T08:05:25+00:00\",\"dateModified\":\"2025-01-03T06:38:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/country-restrictions-for-woocommerce\\\/setting-up-country-restrictions-for-woocommerce\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/country-restrictions-for-woocommerce\\\/setting-up-country-restrictions-for-woocommerce\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/country-restrictions-for-woocommerce\\\/setting-up-country-restrictions-for-woocommerce\\\/#primaryimage\",\"url\":\"https:\\\/\\\/addify.store\\\/documentation\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/database-usage.png\",\"contentUrl\":\"https:\\\/\\\/addify.store\\\/documentation\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/database-usage.png\",\"width\":512,\"height\":512},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/country-restrictions-for-woocommerce\\\/setting-up-country-restrictions-for-woocommerce\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WooCommerce\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Country Restrictions for WooCommerce\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/country-restrictions-for-woocommerce\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Setting Up Country Restrictions for WooCommerce &#8211; Rule Creation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#website\",\"url\":\"https:\\\/\\\/addify.store\\\/documentation\\\/\",\"name\":\"Documentation\",\"description\":\"Documentation for Addify Extensions\",\"publisher\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/addify.store\\\/documentation\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#organization\",\"name\":\"Documentation\",\"url\":\"https:\\\/\\\/addify.store\\\/documentation\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/addify.store\\\/documentation\\\/wp-content\\\/uploads\\\/2023\\\/11\\\/Asset-21-2x.png\",\"contentUrl\":\"https:\\\/\\\/addify.store\\\/documentation\\\/wp-content\\\/uploads\\\/2023\\\/11\\\/Asset-21-2x.png\",\"width\":6761,\"height\":1853,\"caption\":\"Documentation\"},\"image\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Setting Up Country Restrictions for WooCommerce - Rule Creation - Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/addify.store\/documentation\/woocommerce\/country-restrictions-for-woocommerce\/setting-up-country-restrictions-for-woocommerce\/","og_locale":"en_US","og_type":"article","og_title":"Setting Up Country Restrictions for WooCommerce - Rule Creation - Documentation","og_description":"Create Multiple Rules to Enable Desired Restrictions Go to WooCommerce &gt; Country Restrictions &gt; Rules &gt; Add New Rule. You will see the following settings:","og_url":"https:\/\/addify.store\/documentation\/woocommerce\/country-restrictions-for-woocommerce\/setting-up-country-restrictions-for-woocommerce\/","og_site_name":"Documentation","article_modified_time":"2025-01-03T06:38:37+00:00","og_image":[{"width":512,"height":512,"url":"https:\/\/addify.store\/documentation\/wp-content\/uploads\/2023\/06\/database-usage.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/addify.store\/documentation\/woocommerce\/country-restrictions-for-woocommerce\/setting-up-country-restrictions-for-woocommerce\/","url":"https:\/\/addify.store\/documentation\/woocommerce\/country-restrictions-for-woocommerce\/setting-up-country-restrictions-for-woocommerce\/","name":"Setting Up Country Restrictions for WooCommerce - Rule Creation - Documentation","isPartOf":{"@id":"https:\/\/addify.store\/documentation\/#website"},"primaryImageOfPage":{"@id":"https:\/\/addify.store\/documentation\/woocommerce\/country-restrictions-for-woocommerce\/setting-up-country-restrictions-for-woocommerce\/#primaryimage"},"image":{"@id":"https:\/\/addify.store\/documentation\/woocommerce\/country-restrictions-for-woocommerce\/setting-up-country-restrictions-for-woocommerce\/#primaryimage"},"thumbnailUrl":"https:\/\/addify.store\/documentation\/wp-content\/uploads\/2023\/06\/database-usage.png","datePublished":"2023-09-21T08:05:25+00:00","dateModified":"2025-01-03T06:38:37+00:00","breadcrumb":{"@id":"https:\/\/addify.store\/documentation\/woocommerce\/country-restrictions-for-woocommerce\/setting-up-country-restrictions-for-woocommerce\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/addify.store\/documentation\/woocommerce\/country-restrictions-for-woocommerce\/setting-up-country-restrictions-for-woocommerce\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/addify.store\/documentation\/woocommerce\/country-restrictions-for-woocommerce\/setting-up-country-restrictions-for-woocommerce\/#primaryimage","url":"https:\/\/addify.store\/documentation\/wp-content\/uploads\/2023\/06\/database-usage.png","contentUrl":"https:\/\/addify.store\/documentation\/wp-content\/uploads\/2023\/06\/database-usage.png","width":512,"height":512},{"@type":"BreadcrumbList","@id":"https:\/\/addify.store\/documentation\/woocommerce\/country-restrictions-for-woocommerce\/setting-up-country-restrictions-for-woocommerce\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/addify.store\/documentation\/"},{"@type":"ListItem","position":2,"name":"WooCommerce","item":"https:\/\/addify.store\/documentation\/woocommerce\/"},{"@type":"ListItem","position":3,"name":"Country Restrictions for WooCommerce","item":"https:\/\/addify.store\/documentation\/woocommerce\/country-restrictions-for-woocommerce\/"},{"@type":"ListItem","position":4,"name":"Setting Up Country Restrictions for WooCommerce &#8211; Rule Creation"}]},{"@type":"WebSite","@id":"https:\/\/addify.store\/documentation\/#website","url":"https:\/\/addify.store\/documentation\/","name":"Documentation","description":"Documentation for Addify Extensions","publisher":{"@id":"https:\/\/addify.store\/documentation\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/addify.store\/documentation\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/addify.store\/documentation\/#organization","name":"Documentation","url":"https:\/\/addify.store\/documentation\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/addify.store\/documentation\/#\/schema\/logo\/image\/","url":"https:\/\/addify.store\/documentation\/wp-content\/uploads\/2023\/11\/Asset-21-2x.png","contentUrl":"https:\/\/addify.store\/documentation\/wp-content\/uploads\/2023\/11\/Asset-21-2x.png","width":6761,"height":1853,"caption":"Documentation"},"image":{"@id":"https:\/\/addify.store\/documentation\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/2847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/comments?post=2847"}],"version-history":[{"count":2,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/2847\/revisions"}],"predecessor-version":[{"id":7994,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/2847\/revisions\/7994"}],"up":[{"embeddable":true,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/2836"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/media\/1753"}],"wp:attachment":[{"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/media?parent=2847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}