Back to Docs

How to Configure Global Product Settings

The Product Settings section of the WC Country Restrictions plugin provides flexible tools to control how product actions—like Add to Cart and Price Visibility—behave based on the customer’s country. These settings give store owners the power to guide user experience more effectively in restricted regions.

Follow the steps below to configure global product settings in country-based restrictions:

At first, navigate to WooCommerce > Country Restrictions > General from your WordPress Dashboard.

Now, scroll down to the Product Settings.

Add to Cart Visibility Option

This setting controls the visibility and behavior of the “Add to Cart” button across your store. It serves as the default behavior for all products, unless overridden at the category or individual product level.

Available Options:

Show Add to Cart
The standard Add to Cart button will appear for all users, regardless of their location.

Hide Add to Cart
The Add to Cart button will be hidden across the store for users in restricted countries. This is ideal when you want users to browse products but not place orders.

Replace with Custom Button
Replaces the Add to Cart button with a custom button of your choice. Two new fields will appear:

  • Custom Button Text: Set a label like “Contact Sales” or “Request Access.”
  • Custom Button Link: Add a URL to redirect users to a contact form, help article, or external page.

Example: Redirect users from a restricted country to a form explaining why the product is unavailable.

Show Message
Instead of showing or hiding the button, display a custom message to explain why purchasing is restricted. A new field will appear:

  • Custom Message Text: Display a helpful message, e.g., “Unavailable in your country due to shipping limitations.”

Default Price Visibility

Control whether the product price is visible to users from restricted countries. This helps maintain a clean, compliant interface in regions where pricing or sales are limited.

Options:

Show Price
The product price is visible to all users, regardless of country restrictions. This is ideal for transparency, even if purchasing is not allowed.

Hide Price
Hides the product price when a user from a restricted country is browsing. A new field will appear:

  • Add Text When Price is Hidden: Enter a placeholder message, such as “Price not available in your region.”

This keeps the interface clean and informative while complying with your regional sales policies.