Shopify themes, liquid, logos, and UX
Can someone help me write HTML code to add a (total strikethrough price) to my cart at the bottom?
(I am using - UpCart Cart Drawer)
You can use liquid code to get the total price without discount and then show that with strikethrough
<!-- Add this to the cart summary section where the total price is displayed -->
{% assign original_total_price = 0 %}
{% for item in cart.items %}
{% assign original_total_price = original_total_price | plus: item.original_line_price %}
{% endfor %}
<div class="cart-total">
<p>Total: <span style="text-decoration: line-through;">{{ original_total_price | money }}</span> {{ cart.total_price | money }}</p>
</div>
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025