Remove price and add to cart/buy option for specific collection

I am wanting to remove the prices and add to cart buttons from a specific collection on my website as the products will not be for sale. I have done this with my old site, but now using Taste template.

Any help would be much appreciated!

2 Likes

@pj3116

Thanks for reaching out in our Community forums and for sharing your concern, I’d be happy to help.

It sounds like you are looking to edit your product page to remove the price and cart buttons for a specific collection. This is definitely possible with the use of Templates, and I’ll walk you through the process:

  1. Head over to your theme editor, and click on the dropdown menu at the top of the page. Then, click on Products and Create Template.
  2. Once you named your Template, you can hide the blocks like Price, Variant picker, Quantity selector, and Buy buttons.
  3. Add a block (either Text or Pop Up) and fill in the text “Call for Price”. You can also move this block up so that it is in a better position. Here is an example:

After you save and the template is published, you will need to assign it to the products by heading over to the Product tab on the Shopify Admin. Here are the steps below:

  1. Once you’re on the Product tab, click on More Filters > Collection > Select the appropriate collection.
  2. Select all of the products and click on Edit Products.
  3. Now, you should see the bulk editor. From there, click on Columns and select Templates.
  4. You’ll be able to assign the previously created template to your products. Feel free to check out our Template guide that goes into more detail.

Kindly reply back to this thread with any questions or updates and we can continue our conversation further!

Thanks!

Hello @pj3116 ,

You can try to follow these steps:

Go to Online Store → Themes → Actions → Edit code

Go to Sections → collection-template.liquid file

Add this following code at the bottom of page

{% if collection.handle == 'your-collection-handle' %}
  
{% endif %}

Replace ‘your-collection-handle’ with the handle of the collection you want to target.

Save and preview

Hope this can help.

Transcy

Hi Transcy!

I don’t seem to have the collection-template.liquid file in sections.

Could it be under another name?