Z O B A E R

Loading

Guide Shopify guide

Shopify Hide Price: 5 Easy Ways (Dawn and Horizon)

Hide prices on Shopify product pages, collection pages, one product, until login or when sold out. No-code steps plus tested code for Dawn and Horizon.
Zobaer Hossain
Zobaer H.Shopify Select Partner · 10+ years
Shopify hide price guide: how to hide prices on Shopify until login, on one product or on collection pages, by Zobaer H.

Some products shouldn’t show a price. Custom furniture, wholesale stock and made-to-order pieces are good examples. The good news: most Shopify hide price jobs need no app. Shopify’s free themes, Dawn and Horizon, can hide the price with a click in the theme editor. For the rest, one small, tested code edit does the job.

I have set this up on many client stores, and the right method depends on where you want the price gone. Here is what you will learn, step by step, for both themes:

  • What hiding a price does, and what it doesn’t do
  • How to hide price on Shopify product pages and collection pages
  • How to hide the price on one specific product
  • How to hide prices until login, or show them only to approved customers
  • How to hide the price when a product is sold out
  • How to swap Add to cart for a “Contact for price” button

Before you start: what hiding a price really does

A Shopify hide price change only affects what shoppers see on your store pages. It doesn’t change how Shopify sells. Keep three facts in mind.

  • Checkout always shows the price. If a product reaches the cart, the cart and checkout show what it costs.
  • A hidden price doesn’t stop a sale. The Add to cart button still works. To stop orders, hide the buy buttons too.
  • The price is still in the page data. Themes add product data for search engines, and every product has a public data link (the product URL plus .js). So a hidden price is a display choice, not a secret.

If only certain buyers may ever see your prices, use Shopify B2B instead. I explain it near the end.

Which Shopify hide price method should you use?

“Editor” means a click in the theme editor, with no code.

Your goalDawnHorizon
No price on product pagesEditorEditor
No price on collection pagesOne line of CSSEditor
No price on one productEditor (new template)Editor (new template)
Hide prices until loginSnippet editSnippet edit
No price when sold outOne line of CSSSnippet edit
Private wholesale pricesShopify B2BShopify B2B

Way 1: Hide price on Shopify product pages (no code)

This is the simplest Shopify hide price method. The price on a product page is its own block, so you can switch it off. The change applies to every product that uses the template you edit.

In the Dawn theme

  1. In your Shopify admin, go to Online Store, then Themes, and click Edit theme.
  2. Open the drop-down at the top that says Home page, and choose Products, then Default product.
  3. In the left sidebar, find the Product information section.
  4. Hover over the Price block and click the eye icon to hide it. Or open the block and click Remove block.
  5. Click Save.
Shopify hide price on the product page: hiding the Price block in the Dawn theme editor
Way 1: hide the Price block, and the product page shows no price.

In the Horizon theme

  1. Open the theme editor and choose Products, then Default product.
  2. In Product information, open Details, then the Header group.
  3. Hover over Price, click the eye icon, and click Save.

I prefer the eye icon over removing the block. You can bring the price back with one click, and its settings stay the same.

Way 2: Hide price on Shopify collection pages

Collection pages show a price on every product card. Here the two themes work differently.

In the Horizon theme (no code)

  1. In the theme editor, choose Collections, then Default collection.
  2. In the Collection section, open Product card.
  3. Hover over Price, click the eye icon, and click Save.
  4. Do the same in every Featured collection section and in Search results.
  5. Go to Theme settings, open Product cards, and turn off Quick add. Its pop-up shows the price and an Add to cart button.

In the Dawn theme (one line of CSS)

Dawn’s product cards have no price setting. You can still hide price on Shopify collection pages in Dawn without editing theme files, using the Custom CSS box.

  1. In the theme editor, choose Collections, then Default collection, and click the Product grid section.
  2. Set Quick add to None.
  3. At the bottom of the section settings, paste this into Custom CSS:
.price { display: none; }

Section CSS only affects that one section, so product pages keep their prices. To hide the price on every product card in the store (collections, search, featured collections and related products), paste this into Theme settings, then Custom CSS, instead:

.card-information .price { display: none; }

I tested both lines with Dawn’s own stylesheets at phone and desktop sizes. Product page prices stayed visible.

Hide price on Shopify collection page: Horizon Price block in the product card and Dawn Custom CSS
Way 2: Horizon hides the card price with a click, Dawn with one line of CSS.

Way 3: Hide price on Shopify for one specific product

Often only a few products need a hidden price. You have two options.

No code: a separate product template

Shopify shows this method in its guide to hiding the Add to cart button. It works the same in Dawn and Horizon.

  1. In the theme editor, open the Home page drop-down and choose Products, then Create template.
  2. Name it, for example no-price, base it on Default product, and click Create template.
  3. Hide the Price block as in Way 1. To stop orders, also hide Buy buttons and Quantity selector (in Horizon, quantity sits inside Buy buttons).
  4. Click Save.
  5. In your admin, open the product. In the Theme template box, choose no-price and click Save.
Shopify hide price on a specific product: assigning a no-price theme template and a hide-price tag
Way 3: give one product its own template, or tag it hide-price for the code method.

One catch: a template only changes the product page. Collection pages and search still show the price, so use the tag method if that matters.

With a tag: hide the price everywhere

Add the tag hide-price to the product, then use Rule 1 of the price code further down. The price disappears from the product page, cards, search and quick add, and shoppers see “Contact for price” instead. Tags are case-sensitive, so type hide-price exactly.

Way 4: Hide prices until login on Shopify

Trade and wholesale stores often want to hide prices until login, so guests see products but not prices. Shopify’s theme code knows whether a shopper is logged in, so one rule handles it. Guests see “Log in to see prices”, and customers who log in see the normal price.

First, make sure customers can log in:

  1. In your admin, go to Settings, then Customer accounts.
  2. Under Sign-in links, turn on Show sign-in links and click Save. Dawn and Horizon then show an account icon in the header.

Then add Rule 2 from the price code below. Here is the part most guides skip. With Shopify’s current customer accounts, anyone can sign in with just an email, and Shopify creates their profile on the spot. So a rule to hide prices until login keeps prices from casual visitors, not from a determined competitor.

If only approved buyers should see prices, tag those customers wholesale in your admin, and use this Rule 2 instead:

  # Rule 2: everyone except customers tagged wholesale
  unless customer.tags contains 'wholesale'
    assign hide_price = true
    assign hide_price_text = 'Log in to see prices'
  endunless
Hide prices until login on Shopify: guest view with Log in to see prices next to the logged-in view
Way 4: guests see a login prompt, logged-in customers see the price.

Way 5: Hide the price when a product is sold out

Some stores hide the price of sold-out items, so the “Sold out” label does the talking.

Dawn: Dawn already gives sold-out prices their own class. Paste this line into Theme settings, then Custom CSS. It hides the price of sold-out products on cards and of sold-out variants on product pages. The “Sold out” badge stays.

.price--sold-out .price__container { display: none; }

Horizon: Horizon has no sold-out class on the price, so use Rule 3 of the price code below. In both themes, the price comes back when a shopper picks a variant that is in stock.

The code: one Shopify hide price edit for Dawn and Horizon

Both themes print every price through one file called price.liquid. Product pages, product cards, search results and quick add all use it, so one edit covers the store. The code holds three Shopify hide price rules. Keep the ones you need and delete the rest.

  • Rule 1: products tagged hide-price show “Contact for price”.
  • Rule 2: visitors who aren’t logged in see “Log in to see prices”.
  • Rule 3: sold-out products and variants show no price.

Step 1: Duplicate your theme

Go to Online Store, then Themes. Click the three dots next to your live theme and choose Duplicate. Edit the copy, test it, then publish it.

Step 2: Paste the rules into price.liquid

On the copy, click the three dots, choose Edit code, and open price.liquid in the Snippets folder.

Dawn: find the line {%- unless target == null and placeholder == null -%} and paste this directly above it:

{%- liquid
  assign hide_price = false
  assign hide_price_text = 'Contact for price'

  # Rule 1: products with the tag hide-price
  if product.tags contains 'hide-price'
    assign hide_price = true
  endif

  # Rule 2: visitors who are not logged in
  if customer == blank
    assign hide_price = true
    assign hide_price_text = 'Log in to see prices'
  endif

  # Rule 3: sold-out products and variants
  if available == false and placeholder == blank
    assign hide_price = true
    assign hide_price_text = ''
  endif
-%}
{%- if hide_price -%}
  <div class="price price--hidden">
    <span class="price-item">{{ hide_price_text }}</span>
  </div>
{%- else -%}

Horizon: find the line <div ref=”priceContainer”> and paste this directly above it:

{%- liquid
  assign hide_price = false
  assign hide_price_text = 'Contact for price'

  # Rule 1: products with the tag hide-price
  if product_resource.tags contains 'hide-price'
    assign hide_price = true
  endif

  # Rule 2: visitors who are not logged in
  if customer == blank
    assign hide_price = true
    assign hide_price_text = 'Log in to see prices'
  endif

  # Rule 3: sold-out products and variants
  if product_resource != blank and selected_variant.available == false
    assign hide_price = true
    assign hide_price_text = ''
  endif
-%}
{%- if hide_price -%}
  <div ref="priceContainer">
    <span class="price">{{ hide_price_text }}</span>
  </div>
{%- else -%}

Step 3: Close the rule at the end of the file

In both themes, add this as the very last line of price.liquid, then click Save.

{%- endif -%}

I tested this code offline against the real Dawn and Horizon files, for every rule and case. In Horizon, it keeps the price box the theme refreshes when shoppers switch variants, so variant switching still works.

One thing will look odd. The theme editor preview isn’t logged in as a customer, so with Rule 2 it shows “Log in to see prices” everywhere. To check real prices, log in to your live store as a customer.

Replace Add to cart with a Contact for price button

A product with no price but a working Add to cart button confuses people. So when you hide a price, replace the buy buttons with a clear next step.

No code: in the template from Way 3, hide Buy buttons. In Horizon, add a Button block, set the Label to “Contact for price”, and set the Link to your contact page. In Dawn, add a Text block with a link to your contact page.

With code (tag or login rules): on the Default product template, add a Custom Liquid block to Product information, right under the price. Paste this for Dawn:

{%- liquid
  assign hide_buy = false
  assign button_text = 'Contact for price'
  assign button_link = '/pages/contact'

  if product.tags contains 'hide-price'
    assign hide_buy = true
  endif

  if customer == blank
    assign hide_buy = true
    assign button_text = 'Log in to see prices'
    assign button_link = routes.account_login_url
  endif
-%}
{%- if hide_buy -%}
  <style>
    .product-form__buttons, .product-form__quantity { display: none; }
  </style>
  <a class="button button--full-width" href="{{ button_link }}">{{ button_text }}</a>
{%- endif -%}

For Horizon, use this version. Only the CSS line and the button class differ:

{%- liquid
  assign hide_buy = false
  assign button_text = 'Contact for price'
  assign button_link = '/pages/contact'

  if product.tags contains 'hide-price'
    assign hide_buy = true
  endif

  if customer == blank
    assign hide_buy = true
    assign button_text = 'Log in to see prices'
    assign button_link = routes.account_login_url
  endif
-%}
{%- if hide_buy -%}
  <style>
    .buy-buttons-block { display: none; }
  </style>
  <a class="button" href="{{ button_link }}">{{ button_text }}</a>
{%- endif -%}

Change /pages/contact to your own contact page. For approved customers only, swap if customer == blank for unless customer.tags contains ‘wholesale’, and its endif for endunless.

Be honest about what this does: it hides the buttons with CSS, so the product can still be bought through a direct cart link. For most stores that is fine. If a product must never sell online, set it to draft or remove it from the Online Store sales channel.

Wholesale prices: use Shopify B2B instead

If you sell to businesses, Shopify B2B is the real tool. It is included on the Basic, Grow, Advanced and Plus plans at no extra cost, but not on Starter or Retail.

  • Catalogs set wholesale prices that only your B2B customers see after they log in. Retail visitors still see normal prices.
  • Plan limits: Basic, Grow and Advanced allow up to 3 active catalog assignments across B2B markets. Plus has no limit and can give each company its own catalog.
  • Trade theme: Shopify’s free Trade theme is made for B2B-only stores and can hide prices from visitors who aren’t logged in.

Prefer an app? Several hide price and quote apps in the Shopify App Store do this without code. When I checked in November 2026, most cost about $2 to $9 a month.

Common mistakes when you hide prices on Shopify

  • Hiding the price but not the buttons. Shoppers see the price at checkout and feel tricked. Add a Contact for price button instead.
  • Forgetting quick add. The quick add pop-up on product cards can still show an Add to cart button. Turn quick add off.
  • A tag with a different spelling. Hide-Price doesn’t match hide-price. Copy the tag exactly.
  • Editing the live theme. One missing endif breaks your prices. Edit a copy first.
  • Treating it as security. A hidden price can still be found in the page data. Use B2B catalogs for prices that must stay private.

Frequently asked questions

Can you hide prices on Shopify?

Yes. In Dawn and Horizon you can hide the Price block on product pages in the theme editor. Horizon also hides card prices with a click. For login, tag or sold-out rules, use the price.liquid edit in this guide.

How do I hide the price on a specific product in Shopify?

Create a new product template, hide its Price block, and pick that template in the product’s Theme template box. To hide price on Shopify collection pages too, tag the product hide-price and use Rule 1.

How do I hide prices on the Shopify collection page?

In Horizon, hide the Price block inside the Product card of the Collection section. In Dawn, paste .price { display: none; } into the Product grid section’s Custom CSS and set Quick add to None.

How do I hide prices until customers log in on Shopify?

To hide prices until login, turn on Show sign-in links in Settings, Customer accounts. Then add Rule 2 to price.liquid, and use the Custom Liquid code to swap Add to cart for a login button.

How do I hide the price if a product is sold out on Shopify?

In Dawn, add .price–sold-out .price__container { display: none; } to Theme settings, Custom CSS. In Horizon, use Rule 3 of the code. The Sold out label stays in both.

Can I hide the price and the Add to cart button together?

Yes. On a separate template, hide the Price, Buy buttons and Quantity selector blocks. For tag or login rules, the Custom Liquid code swaps the buttons for a Contact for price or login button.

A Shopify hide price setup works best when shoppers always know what to do next, so give them a clear button. For more guides like this, see my Shopify tips, such as how to remove the quantity selector in Shopify. If you’d rather have it set up and tested for you, I do this in my Shopify store management service. Message me on WhatsApp and I will take a look.

Zobaer Hossain, Shopify designer

Written by Zobaer H.

Shopify Select Partner with 10+ years of experience and 5,000+ clients. I design and build Shopify stores, and I write these guides from real client work.

Shopify Select Partner badge

In this guide

    ★★★★★ 4.9 from 1,350+ client reviews

    Let's start

    Ready to start your store?

    Send me your idea or store link. I'll reply with honest advice and a fixed quote.

    ✓ Free quote✓ Fixed price✓ You own everything