Hello all,
I wan to add regular price, sale price and how much customers saved for the product to cart items in Shopify cart Page. How can I add it in Shopify to my cart page. I use dawn theme
Hi @Nijat123
To accomplish the above requirements, you need to change the liquid file of the store. You can follow the steps below:
- Go to Online Store > Theme > Edit code
- Then search for “cart” in the search box => find the file main_cart_items.liquid => find line 87:
- Make changes to the code: Find the code in the main_cart_items.liquid file found above.
- And replace them with the code below:
{%- if item.original_price != item.final_price -%}
{{ 'products.product.price.regular_price' | t }}
<s>
{{- item.original_price | money -}}
</s>
{{ 'products.product.price.sale_price' | t }}
<strong>
{{ item.final_price | money }}
</strong>
Price saved {{ item.original_price | minus: item.final_price | money}}
{%- else -%}
{% if item.product.compare_at_price %}
Regular price <s>
{{item.product.compare_at_price | money }}
</s>
{% endif %}
Sale price
<strong>
{{ item.original_price | money }}
</strong>
{% if item.product.compare_at_price %}
Price saved
{{ item.product.compare_at_price | minus: item.original_price | money}}
{% endif %}
{%- endif -%}
Save your code and check the result. Here are the result that we have done:
I hope that it will work for you.
Thank you for your reply, it worked. great
Worked perfect for me too, thanks so much!




