Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hello!
I'd like to show the percentages of the discounts we are running on our website. The discounts are set via the compare-at-price method. I've read multiple pages giving solutions mentioning the price.liquid (which I don't have in my code) or via the main-product (which I do have) but I can't find the price__badge-sale line anywhere to start.
I'm running the showcase theme.
Thanks in advance!
Hi @WouterG14
{% if product.compare_at_price_max > product.price %} Save {{ product.compare_at_price_max | minus: product.price|money}}{% endif %}
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Thanks for the reply. I don't know where to put this code so I can't move forward unfortunately.. Anyone with the Showcase template that has experience with this?
Hi @WouterG14
Please try to add the code price.liquid file
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
I dont have the price.liquid. Only unit-price.liquid and price.range
I can help you, but I need request to access your store. Please give me your store link
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.