Hide the Add to cart button on product pages
You can hide the option for customers to add products to their cart by customizing a product template that hides specific blocks related to adding items to the cart. You can then assign that product template to one or more products that you don't want customers to be able to add to their cart. This means that the Add to cart button isn't displayed on the product pages that you assign your new product template to.
You might want to hide the Add to cart button from certain product pages in one of the following scenarios:
- You need customers to contact you for a quote on a product price.
- You need to have a pre-order option instead of the Add to cart button.
- You sell custom made-to-order products, and you need customers to contact you about their product requirements before making a purchase.
You can only assign product templates that are associated with your published theme to your product pages. If you create a new template in a theme that isn't the published theme, then you must first publish the theme in order to assign its templates to your products.
Learn more about creating new templates and applying templates to products.
On this page
Hide the Add to cart button for specific products
By default, products are assigned the Default product template. You can create a separate not-for-sale product template to hide the Add to cart button for one or more products, but leave other products still available for purchase on your online store.
Create a not-for-sale product template
To customize specific products without making changes to the Default product template, you need to create a new product template.
Steps:
From your Shopify admin, go to Online Store > Themes.
Find the theme that you want to edit, and then click Customize.
Click the Home page drop-down menu, and then click Products > ⊕ Create template.
In the Create a template dialog, enter a name for your new template into the Name field, such as not-for-sale, and then click Create template.
-
In the Sections navigation sidebar, go to the Template > Product information blocks, and then make the following changes:
- Hover your cursor over the Quantity selector block, and then click the eye icon to hide the block.
- Hover your cursor over the Buy buttons block, and then click the eye icon to hide the block.
- Optional: Hover your cursor over the Price block, and then click the eye icon to hide the block.
-
Optional: If you want to add some text on your product page to give your customers more information, such as a date when sales are expected to resume if the product is unavailable, then you can add and customize a new block with the following steps:
- In the Product information section, click ⊕ Add block > Text to add a text block.
- Click and drag the new Text block to your preferred position on the product page.
- In the Text settings sidebar, add your text into the Text field.
- Select your preferred Text style.
-
Optional: If you want to add a contact form, then you can add and customize a new section on your product page with the following steps:
- In the Template panel, click ⊕ Add section > Contact Form.
- Click and drag the new Contact Form section to your preferred position on the product page.
- In the Contact Form settings sidebar, you can customize your contact form as desired. For example, you can edit the Heading text field to display a call to action, such as Send us a request to be added to our waitlist.
Click Save.
Assign the not-for-sale template to a single product
From your Shopify admin, go to Products.
Click the name of the product that you want to hide the Add to cart button on.
In the Theme template section, click the drop-down menu, and then select the not-for-sale template.
Click Save.
Assign the not-for-sale template to multiple products in bulk
From your Shopify admin, go to Products.
Click the checkboxes next to the products that you want to hide the Add to cart button on, and then click Bulk edit.
In the bulk editor, click Columns, and then click Template to add the Template column to the editor table.
In each product row, set the Template to be product.not-for-sale.
Click Save.
Hide the Add to cart button for all products
If you want to hide the Add to cart button for all your products but still allow customers to browse your online store, then you can customize the Default product template to apply changes to all existing and future products.
Steps:
From your Shopify admin, go to Online Store > Themes.
Find the theme that you want to edit, and then click Customize.
Click the Home page drop-down menu, and then click Products > Default product.
-
In the Sections navigation sidebar, go to the Template > Product information blocks, and then make the following changes:
- Hover your cursor over the Quantity selector block, and then click the eye icon to hide the block.
- Hover your cursor over the Buy buttons block, and then click the eye icon to hide the block.
- Optional: Hover your cursor over the Price block, and then click the eye icon to hide the block.
-
Optional: If you want to add some text on your product pages to give your customers more information, such as a date when sales are expected to resume if your products are unavailable, then you can add and customize a new block with the following steps:
- In the Product information section, click ⊕ Add block > Text to add a text block.
- Click and drag the new Text block to your preferred position on the product page.
- In the Text settings sidebar, add your text into the Text field.
- Select your preferred Text style.
-
Optional: If you want to add a contact form, then you can add and customize a new section on your product pages with the following steps:
- In the Template panel, click ⊕ Add section > Contact Form.
- Click and drag the new Contact Form section to your preferred position on the product page.
- In the Contact Form settings sidebar, you can customize the contact form as desired. For example, you can edit the Heading text field to display a call to action, such as Send us a request to be added to our waitlist.
Click Save.