Re: I can't hide or remove price

Solved

How to hide product prices on Dawn theme collections?

Minais
Excursionist
21 2 2

Hello, I am still having issues with the price showing on certain products that are only available in-store. I have created a new product and collection template, and on the product template I have succesfully removed the price. However, on the collection template, it still shows up, despite adding a custom code. I am using the Dawn theme. 

 

Anyone who knows what to do?Skærmbillede 2023-07-03 100756.png

 

 

Accepted Solution (1)
Minais
Excursionist
21 2 2

This is an accepted solution.

Hello, I solved it by adding a custom code in the theme editor. 🙂 

 

For anyone who happens to have the same issue (with the price still showing in the collections page, and not the product itself) I used a custom code found in this thread https://community.shopify.com/c/shopify-design/how-do-i-remove-price-from-collections-page/m-p/15226...:

Skærmbillede 2023-07-03 104212.png

I did not need to edit the store code itself, but could just copy paste this code into the theme editor. 

 

Refardless, thanks you for your time and answer!

View solution in original post

Replies 3 (3)

zaczee
Globetrotter
855 46 44

Hi,

 

Can you share your store url

 

ben_warner12
Visitor
2 0 2

Access the theme editor in your Shopify admin dashboard. You can find it under "Online Store" and then "Themes." Look for the Dawn theme and click on the "Actions" button, then select "Edit code." Now, you need to locate the collection template. In the theme editor, you'll see a list of template files on the left-hand side. Look for a file named "collection.liquid" or "collection-template. liquid." This is the template responsible for displaying product collections. Within the collection template, you'll need to find the code that controls the price display. It typically appears as something like "{{ product.price }}." This is the code you'll need to modify or remove. Depending on your desired outcome, you have a couple of options. If you want to completely remove the price, you can simply delete the code responsible for displaying it. Alternatively, if you'd like to replace the price with custom text or a different message, you can modify the code accordingly. Once you've made the necessary changes to the collection template, don't forget to save your modifications in the theme editor. It's crucial to test the collection page on your website to ensure the price is no longer appearing for the specified products. Check both the products that previously displayed the price and any new ones you've added to the collection to confirm that the changes have been successfully implemented.

Minais
Excursionist
21 2 2

This is an accepted solution.

Hello, I solved it by adding a custom code in the theme editor. 🙂 

 

For anyone who happens to have the same issue (with the price still showing in the collections page, and not the product itself) I used a custom code found in this thread https://community.shopify.com/c/shopify-design/how-do-i-remove-price-from-collections-page/m-p/15226...:

Skærmbillede 2023-07-03 104212.png

I did not need to edit the store code itself, but could just copy paste this code into the theme editor. 

 

Refardless, thanks you for your time and answer!