Shopify

How to Show or Hide Shopify Products by Country or Region?

11 views 0

Many Shopify merchants sell products that are available only in specific countries or regions because of shipping limits, legal regulations, pricing strategies, or business policies. While Shopify Markets allows basic product publishing for each market, it does not offer detailed control to hide or show individual products based on a visitor's real-time location.

To achieve location-based product visibility, you can use our app: LockOn - Access Restriction for Shopify. This app lets you restrict or allow access to products, collections, prices, or add-to-cart buttons based on a customer's country, state, city, or IP address without needing custom code.

With Shopify Access Restriction application, you can:

  • Hide specific products from visitors in selected countries
  • Show products only to customers from allowed regions
  • Replace restricted products with a custom message or redirect
  • Control visibility dynamically using visitor location detection.

How Shopify Access Restriction app Works

Our App uses location-based rules (locks) to control who can access specific store content. Each lock includes:

  • Content to restrict (products, collections, prices, cart buttons, etc.)
  • Access conditions (country, state, city, IP, customer tag, login status)
  • Unauthorized access behavior (redirect, message, or custom page).

Once set up, the app automatically applies these rules in real time based on the visitor's location.

Step-by-Step Setup: Show or Hide Products by Country or Region in Shopify

Step 1: Install the LockOn : Access Restriction App
  1. Go to the Shopify App Store.
  2. Install LockOn - Access Restriction app by miniOrange.
  3. Open the app from your Shopify Admin dashboard.

Step 2: Create a New Lock
  1. In the App dashboard, click Create Lock.
  2. Enter a meaningful name (e.g., "Hide Products by Country").
  3. This lock will set the rule for showing or hiding products.

Step 3: Select the Products You Want to Restrict

Under Content for Locking, choose what products you want to hide or show:

  • Selected Products - hide or show individual products.
  • Collections - apply rules to entire product groups.
  • Prices - hide Product prices for specific regions.

Step 4: Set Country or Region-Based Access Rules

In the Control Access section:

  1. Choose Country (or State/City if necessary).
  2. Select the countries you want to restrict or allow.
  3. Define whether visitors from those countries:
    • Are blocked from viewing the product, or
    • Are the only ones allowed to view it.

Step 5: Configure Unauthorized Access Behavior

Decide what happens when a visitor from a restricted country tries to access the product:

  • Redirect to another page.
  • Redirect to a specific URL.
  • Show a custom HTML message (e.g., "This product is not available in your region").

Step 6: Save and Activate the Lock
  1. Click Save to activate the rule.

So, using the LockOn - Access Restriction application, Shopify merchants can easily show or hide products by country or region without coding. The app provides precise geographic controls, flexible access rules, and customizable user experiences—making it far more powerful than Shopify's native options alone.

Was this helpful?


Hello there!

Need Help? We are right here!

support