Guide

How to hide prices by country on Shopify

Shopify Markets can remove a product from a country or give it a different price, but it cannot show the product while hiding its price there. Theme code or an app can. This guide covers when to use each and how country detection works on the storefront.

By the Quoffer team · Last verified

Why hide prices for some countries

Typical reasons we hear from merchants:

  • Shipping and duties change the landed price. A $300 table is $300 at home and much more delivered overseas. Showing the domestic price abroad sets the wrong expectation.
  • Distribution agreements. A distributor owns a territory and you must not advertise direct prices there.
  • Freight-only regions. Some destinations need a freight quote before any price makes sense.
  • Testing a new market. You take enquiries before committing to a local price list.

In each case you still want the product visible, so buyers can ask, rather than gone.

The native Shopify way: Markets catalogs

Shopify Markets controls availability and price per market (Creating catalogs for markets):

  1. Markets > Catalogs > Create catalog.
  2. Set a price adjustment (for example +15%) or fixed prices per product.
  3. In Products, exclude any product that must not be sold in this market.
  4. Assign the catalog to the market and set it Active.
  5. Check the result with Products > View as and pick the market.

What you get: a different price per market, or no product at all. Shopify says that a customer who visits a product not available in their market sees your 404 page, and search shows only products published in their market.

What you do not get: “show the product, hide the price, ask for a quote”. The native product template that hides the price block applies to everyone, not per country (Help Center).

The theme-code way

Liquid exposes the storefront’s current country as localization.country.iso_code. A developer can:

  1. Store a list of country codes in a theme setting or metafield.
  2. Wrap the price and buy-button output in a condition that checks the current country against the list.
  3. Print “Contact us for pricing in your country” and a form link instead.
  4. Repeat in product cards, quick view, search and the cart drawer.

Trade-offs: the code must cover every snippet that prints a price, it needs re-merging after theme updates, and buyers can switch country in the selector to see the other price. As with every display method, the price remains in the product data Shopify serves.

The Quoffer way

Quoffer has a Hide price by country rule, set in the admin and applied by its theme app embed:

  1. Open Hide price and add the countries where prices should be hidden.
  2. Optionally combine it with customer targeting, for example hide for guests in those countries only, so logged-in distributors still see prices.
  3. Choose what buyers see instead. In Quote mode they get the Request a Quote button; in Offer mode the rule hides the price and the native buy buttons for buyers in those countries.
  4. Test by switching country in your storefront’s selector.

The rule reads the country the storefront has selected for the buyer. If the country is unknown or not on the list, prices show normally. It works in both Quote mode and Offer mode, while Quoffer’s other Hide price rules apply only in Quote mode.

Quote requests from abroad arrive with the buyer’s market country stored, which helps when you build the draft order with the right currency, shipping and tax. See turn a Quote request into a draft order.

Comparison

Markets catalog Theme code Quoffer Hide price by country
Different price per country Yes No No
Remove product in a country Yes (404) If coded No
Show product, hide price No Yes Yes
Replace with quote button No If coded Yes (Quote mode)
Combine with customer rules No If coded Yes
Buyer can switch country Market selection Yes Yes
Maintenance Catalog upkeep Theme updates None in theme

Markets and Quoffer work together: use catalogs for countries where you have a price, and hide prices by country where you quote.

Test it before buyers do

Country rules fail quietly, so run this check after any change:

  1. Open a private browser window so no customer session or cart is reused.
  2. Use the theme’s country or region selector to pick a country on your list. Confirm the price, Add to Cart and Buy it now are gone on a product page, and that a collection page does not show the price either.
  3. Switch to a country that is not on the list and confirm prices and buy buttons return.
  4. If you combined the rule with customer targeting, log in as a test customer with the relevant tag and repeat both checks.
  5. Submit a test Quote request from the hidden country and check that it arrives with the right country, so you can quote in the right currency.
  6. In Shopify, use Products > View as with each market to confirm which products are published there; a product excluded from a market will 404 regardless of any price rule.

Repeat the check after switching themes, because country selectors differ from theme to theme.

Common mistakes

  • Using country hiding as a legal control. If you must not sell in a region, exclude the product from the market.
  • Forgetting the country selector. Make sure your theme shows one, or buyers abroad cannot correct a wrong guess.
  • Hiding without a next step. A buyer in a hidden country needs a quote button, an Offer button or a clear contact route.
  • Leaving shipping rates open. If you quote freight for a region, make sure checkout cannot ship there at a domestic rate.

Freight-heavy sectors such as furniture and building materials use country rules most.

Frequently asked questions

Can Shopify Markets hide a price but keep the product visible?

No. A market catalog can include or exclude a product and set a custom price. An excluded product shows your 404 page to customers in that market. Showing the product with no price and a quote button needs theme code or an app.

How does the storefront know the buyer's country?

Shopify matches a visitor to a market by location, and buyers can usually change country in the theme's country selector. Theme code and Quoffer read that selected storefront country, so a buyer who switches country sees the rules for the new one.

Is hiding prices by country a reliable way to enforce a distribution agreement?

Only partly. It controls what the page shows, but the price is still in Shopify's product data and a buyer can switch country. If a product must not be sold in a region, exclude it from that market's catalog instead.

Does Quoffer's country rule work in Offer mode?

Yes. Hide price by country works whichever mode the store runs. Other Hide price rules, by product and customer, apply in Quote mode.