Shopify themes, liquid, logos, and UX
Hi there, I would like to have the word 'Sale'/'Discount' next to the price of discounted items only in the shopping cart page. Please see attached images. Can this be done? Can anyone tell me how to do this, please?
Currently:
What I'm trying to get:
Hi @peaches22 ,
Would you mind to share your URL website? with password if its protected. Thanks!
Thank you for the information.
Try this one.
.product-option:nth-child(2):after {
content: "Sale!";
color: red;
font-style: italic;
}
Result:
It is like this? I hope it help.
@Made4uo-Ribe , it looks great but the problem is, the word 'Sale!' appears with every product. Is there a way to make it appear with only specific products e.g. those with discount? I use 'compare price at' method for discounting items.
Yeah, i just thought that is what you mean. Because the other solution that I think is you need to write a liquid code for this design.
Out of interest, which app did you end up using?
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn 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, 2025