How to hide the add to cart button on Shopify, and what to put in its place

You hide the add to cart button in the theme editor. Create a product template, hide the Buy buttons and Quantity selector blocks, and assign the template to the products you do not sell online. It takes no code, and a text block or a contact form takes the button's place.

An empty frosted purple glass basket tipped on its side, with its handle lying flat and a lime green ball next to it, on a dark surface.

Shopify documents this method in its help center. It works on current themes such as Dawn and Horizon, and it does not apply to vintage themes. One thing to know before you start: hiding the button changes what people see on the page. It does not stop the product from being sold, and we come back to that below.

One product, or a few

  1. In your Shopify admin, go to Online Store, then Themes, and open the theme editor.
  2. Open the page selector at the top, choose Products, then Create template. Shopify’s example name is not-for-sale.
  3. In the Product information section, hide the Quantity selector and Buy buttons blocks. Hide the Price block too if the price should not show.
  4. Save.
  5. Open the product in your admin and pick the new template under Theme template.

For many products, open the bulk editor, add the Template column and set it there. A template can be assigned only once it is part of your published theme.

In Horizon the quantity field, the add to cart button and the accelerated checkout buttons all sit inside the Buy buttons block, so hiding that one block removes the three of them.

If your theme does not offer these blocks, or you would rather not work on the live theme, this is the kind of change we make for clients with our Shopify support.

A catalog-only store

When nothing on the store is for sale online, skip the new template and hide the same two blocks on the Default product template. Every product, present and future, follows it.

Then look at the product cards, because the product page is not the only place with a button.

  • In Dawn, the product grid on collection pages has a Quick add setting. Set it to None, and check the other sections that list products.
  • In Horizon, open Theme settings, then Product cards, and turn off Quick add and Mobile quick add.

If people should not browse the catalog either, the tool is the store password, not the template.

Products sold on request

Furniture made to measure, a machine that needs a quote, a product that needs a conversation first. Here the button goes and something has to replace it, or the page is a dead end.

  • A Text block that says how to buy: on request, with a quote, from a date.
  • A Contact form section under the product, or a button that links to your contact page.
  • The Price block hidden, or left visible as a starting price. That is a business choice, the template supports both.

Once you agree on the order with the customer, you do not need the button back. Go to Orders, then Drafts, create the order yourself and send the invoice. The invoice carries a link to a checkout where the customer pays.

B2B prices after login

This case is different. You are not hiding a button from everybody, you are showing prices and buying to some customers only.

Shopify’s own B2B does part of this without touching the theme. Companies, catalogs and payment terms are available on the Basic, Grow, Advanced and Plus plans. A buyer who logs in sees the prices and the products of their catalog. The store stays public by default, and a visitor who is not logged in sees your normal prices.

From there it depends on the store.

  • A store for business customers only: in Online Store, then Preferences, the Store access section has the setting Restrict access to B2B customers only.
  • A store that sells to consumers and to companies together: hiding the price and the button from visitors who are not logged in is a theme change. Liquid knows whether the visitor is a B2B customer through customer.b2b?, and the price and buy buttons are shown only when that is true, with a link to log in for everyone else.

That second route is code. Do it on a duplicate of your theme (the three dots next to the theme, then Duplicate), test it logged in and logged out, and publish the copy only when both views are right. Oybò runs retail and wholesale on one Shopify store, with dedicated price lists for business customers.

Hiding is not blocking

The template removes the button from the page. The product is still active and still has a price. Shopify can build a checkout from a plain link that contains a variant ID, and other sales channels do not read your theme at all.

So if a product must not be bought by anybody, do not rely on the theme. Work on the product itself: its stock, its status, the channels it is published on.

When it is the wrong thing to do

  • The product is out of stock for a while. Leave the button. With no stock, the theme disables it and shows Sold out, and the customer understands what happened.
  • You are tempted by a quick CSS rule. Hiding the button with CSS leaves the buying form in the page. Use the template, which removes it.
  • The product has a price and could be bought right now. A request form adds a step between the customer and the order. We suggest it only when the sale really needs a conversation.

Keep reading

Tell us what you are working on

Book a 15-minute call, or write to us.

Book a call (opens in a new tab)