Shopify themes, liquid, logos, and UX
Hi!
I am using the dawn them and my website URL is carcleansweden.se. I would like to add the same type of sale badge that I already have on my collection page (the text with the amount of the sale):
Onto my product page as well:
This is the code I used for the collection page: "<strong>-{{ card_product.compare_at_price | minus: card_product.price | times: 100 | divided_by: card_product.compare_at_price }}%</strong>" but I cant find where to put it in to add the same on the product page.
I would hugely appreciate the help!
Solved! Go to the solution
This is an accepted solution.
Hi,
Here are the steps:
1. Go to the Online Store.
2. Click Edit code.
3. Find the sinppets folder.
4. Find the file named price.liquid
5. Add the code below:
This is an accepted solution.
Hi,
Here are the steps:
1. Go to the Online Store.
2. Click Edit code.
3. Find the sinppets folder.
4. Find the file named price.liquid
5. Add the code below:
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025