Setting Up Country Restrictions for WooCommerce – Rule Creation

Create Multiple Rules to Enable Desired Restrictions

Go to WooCommerce > Country Restrictions > Rules > Add New Rule. You will see the following settings:

  • Rule Title: Add a desired title for each rule
  • Choose countries: Choose countries for restrictions (Geo-location must be enabled) 
  • Restriction Mode: Choose to restrict entire products, prices, or add to cart button:
    • Restrict Products: Hide certain products from selected countries 
    • Price and Add-to-Cart: Hide price and add-to-cart from selected countries 
  • Choose from the following to apply restrictions:
    • Products: Choose products for the selected action
    • Categories: Choose product categories for selected action
    • Tags: Choose product tags for the selected action
  • Restricted Products Options: Choose to apply the following actions on restricted items:
    • Restriction Message: Add a custom message to replace hidden products 
    • Select Store URL: Select a store page to divert users if they access the product directly
    • Custom URL: Enter a website link to redirect users if they access directly
  • Select Price Visibility: Choose to show or hide the price for chosen items.
    • Add Text When Prices are Restricted: In case you wish to hide price, add custom text to replace prices
  • Select Add to Cart Button Visibility: Choose to show or hide the add-to-cart button. 
  • Restrict Add-to-Cart: In case you wish to hide add-to-cart, choose from the following:
  • Hide add-to-cart: Completely hide add-to-cart
  • Replace with a custom button: Add custom text and link
  • Show a message: Display a custom message