Would greatly appreciate any help!
- Can’t figure this one out myself.
I have already tried code that would work on Debut theme.
We want to add discount percentage on the product image on both the collection page and product page.
I’m using the prestige theme.
Hope this is enough information to point me in the right direction, sorry for the bad English.
Hi @Kasper4 ,
Hope you’re doing well.
Could you provide your website url?
Thank you
Hey!
Sure thing, it’s www.inamodus.dk
I’ve managed to put in on the colletion page, but only on the first page and then it swaps back.
Here is an example:
On: https://inamodus.dk/collections/udsalg
Off: https://inamodus.dk/collections/udsalg?page=2
I followed these instructions:
replacing {{ ‘product.labels.on_sale’ | t }} with {{ product.compare_at_price | minus: product.price | times: 100 | divided_by: product.compare_at_price | replace: ‘0,’, ‘’| append: “% OFF”}} .
in the product.item.liquid
thanks!
Hi @Kasper4 ,
It does seem weird it works for a second and then doesn’t when we change pages or refresh the page.
It might require me to look into the code…
What’s the theme you’re using?
Yes, it’s quite weird.
I’m using the Prestige Theme.
I’ve talked to the support at Prestige, and they are saying it is because we’re using the filter app “Product filter & search”
- I’m still waiting for answer from their support atm.
Hi @Kasper4 , I’m not sure if this is what you are looking for but this app Codeboost I use let’s you promote discount codes across your website really well. You can add custom messages including the percentage the discount code will apply on the eligible products, fully customizable.
I like it because I do not have to modify any theme code.
Description from marketplace:
Codeboost will allow you to display badges and messages above eligible products in the collections page, product page and cart page. Additionally you can only show these promotions selectively and privately to specific customers!
Hopefully this helps!