Back to Docs

How to Configure Country Restrictions at Product Level

The WC Country Restrictions plugin empowers you to fine-tune visibility and access to individual products based on the visitor’s location. Product-level settings offer the highest level of control, overriding both category-level and global-level configurations.

To configure restrictions for a specific product, go to Edit Product

When editing a product in WooCommerce, scroll to the Country Restrictions tab to configure the following options:

Overwrite Global

Enable this to bypass both global and category-level country restrictions. Once activated, the product will follow only its own restriction rules configured in this tab.

Enable Restrictions

Activates restriction controls for this individual product. Once enabled, you can define country access, visibility behavior, and front-end messaging.

Select Countries

Choose the specific countries where this product should be hidden or shown, depending on your selected restriction mode. You can select one or more countries using the dropdown selector.

Restriction Mode

Options:

Show Product
Always display this product to all users, regardless of location.

Hide Product
Completely hide this product from all visitors.

Hide Product for Selected Countries
Display this product globally, except for users located in the countries you’ve selected.

Add to Cart Visibility

Options:

Show Add to Cart
The standard Add to Cart button is shown to all users.

Hide Add to Cart
Removes the button completely, making it impossible to add the product to the cart.

Replace with Custom Button
Replaces the Add to Cart button with a customizable button. Two additional fields appear:

  • Custom Button Text (e.g., “Contact Us”)
  • Custom Button Link (e.g., a support page or external resource)

Show Message
Replaces the Add to Cart button with a custom message. An input field will appear:

  • Custom Message Text (e.g., “This product is not available in your region.”)

Price Visibility

Options:

Show Price
The product price will always be visible, regardless of restrictions.

Hide Price
Hide the product price when accessed from restricted countries. An additional field appears:

  • Add Text When Price is Hidden (e.g., “Price not available in your country”)

Custom Notice

Displays a personalized message to visitors from restricted countries. This helps communicate why the product isn’t available and offers next steps or alternative contact methods.