Once please check the comment day I made and check what version of Dawn was available on that day and what version of Dawn theme is available in these days.
If you find difference then maybe there is chance that theme author made a update in this version and the solution I provided is not compatible with new version. So I suggest just take the idea from my solution and implement it in the version you are using.
I have this question too. I would like to replace the “Sale” bubble that appears on the bottom-left of the product images in the Dawn theme with “20% off”, or the relevant sale percentage.
@Guleria The code you shared seems promising, but as others have asked, it is not clear which file to add it too nor where to put it. Can you please answer these two questions?
Can anyone else provide guidance on how to display the percent discount in place of the sale icon? This would be both on the “all products” view and on individual product pages, as that is where the “Sale” bubble appears. Thank you!
@Guleria Thanks for the detailed suggestion! I implemented this, and it did replace the “Sale” bubble with the percent off. However, it also messed up the grid display, instead displaying each product as a bulleted list with varying image sizes (see below). (Note: this image comes from the desktop view, not mobile.) Is there a way to modify the “Sale” bubble without changing anything else on that page?
I provided the solution after implementing in Dawn version ‘1.1.0’
If you are with anther version please just take the logic from the solution I provided and implement it accordingly.
@Guleria Thanks for that clarification. I modified the code further and got it to work by removing both instances of the following: " aria-hidden=“true”
Could you point out the code file location for the “Sale” icon on the individual product page so that I can implement the new code similarly? Thank you!
How can I change to the top right corner? I prefer there than the bottom left corner…
And also… I’m my collection I sell product with different sizes so the compare price is the high price with the low price and the discounts appears higher than the real one…
For example:
Size 21x30 price 15$ - 12,75$ with discount
Size 50x70 price 30$ - 25,5$ with discount
So if I have a 15% discount, the code compares 30$ with 12,75$ and shows 58% off… And it’s incorrect… I want that compares 15$ with 12,75$ and shows 15% off.