How to Restrict Product Visibility by a Country in WooCommerce?

Restricting Product Visibility Based on Country

To enable country-based restrictions, you will first need a plugin, like the WooCommerce Country Restrictions. Once it’s installed and activated, you can restrict products by country by following these steps:

Step 1: Restrict Product Visibility (Rule-Level)

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

Step 2: Restrict Product Visibility (Global Level)

Go to WooCommerce > Country Restrictions > General Settings. From here, you can adjust global settings: 

  • Enable Global visibility: Enable global visibility settings for your store
  • Choose the default catalog visibility for products:
    • Show all products: Display all products to all users
    • Hide all products: Hide all products from all users 

Step 3: Restrict Product Visibility (Product Level)

Go to Products > choose a product and click Edit. Then go to Product Data > Country Restriction to apply restriction settings to individual products: 

  • Exclude from product visibility rules: Enable if you want to exclude a product from visibility rules
  • Enable / Disable: Enable or disable product-level settings
  • Select countries: Choose countries where restrictions will apply 

How to Restrict Payment Methods by Country in WooCommerce?

Go to WooCommerce > Country Restrictions > Payment Methods. From here, enable country-based restrictions for each payment method as needed:

  • Direct bank transfer: Select countries to enable/disable payment method (Geo-location must be enabled). 
  • Check payments: Select countries to enable/disable payment method (Geo-location must be enabled). 
  • Cash on delivery: Select countries to enable/disable payment method (Geo-location must be enabled).