Shopify themes, liquid, logos, and UX
Solved! Go to the solution
This is an accepted solution.
Hi @DenaHome ,
For this you would need to modify cart.liquid. You would use Liquid line_item.compare_at_price to display the discounted price. Then add a CSS class for the strikethrough effect.
This is an accepted solution.
Hi @DenaHome ,
For this you would need to modify cart.liquid. You would use Liquid line_item.compare_at_price to display the discounted price. Then add a CSS class for the strikethrough effect.
Ok, so what to write in css?
Hi @DenaHome,
css can be inline like so:
<span style=“text-decoration: strike-through” >
Or give it a class name and place the style in between
<head>
.alt-price {
text-decoration: strike-through;
}
</head>
<span class=“alt-price” >
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025