Dawn Theme : Show Compare price in cart (and if possible discount from compare price)
also in subtotal calculation
Dawn Theme : Show Compare price in cart (and if possible discount from compare price)
also in subtotal calculation
yes please try this code
https://liquify.design/shopify-developer-guide-display-percentage-discount-shopify/
@KetanKumar i want to show compare price on cart page
Hello, Iām using the Dawn theme also.
How can I remove the āCompare Atā price on all products? I do not want the strikethrough price to show anywhere.
I have deleted the Compare At option from all products in the bulk editor, and it removed the āSaleā tag but still shows the compare at price.
Then I tried entering a $0 Compare Price for each product variant, and now it just shows the main price twiceā¦
Please help, and thanks ![]()
Hello,
Try this⦠I am using Dawn too. I played around with it today and finally what I found out is (at least it worked for me) when going to your āAll Productsā, click on āAllā then āEdit Productsā, match all the prices on āPriceā and " Compare Prices" without deleting them, just make sure it the SAME PRICE NUMBER" for both variants then SAVE. It worked for me. Hope it works for you too, good luck⦠let me know ![]()
Hey Anngee, thanks so much for replying!
I tried what you described and it didnāt quite work.. Now it displays 3 of the exact same price and the middle one is crossed out.. insert shrug emoji lol Iām going to go back and make sure I implemented your advice correctly.
Iāve been able to figure most things out, but Iāve been stumped on this one for days. I so appreciate your help. Hopefully there will be more support for this theme soon.
Hi ashdance333,
Iām so sorry it didnāt work out for you. Mine is still up and running as I hope lol. I am sure you will get it soon. Good luck.
Anngee
Thanks again Anngee! What ultimately did the trick for me was replacing the ācomponent-price.cssā code with the original theme code.
I searched for āpriceā in the Edit Code section, and reverted those code files (just 2) back to their original versions. Component-price.css was the one that did it tho.
The code file wasnāt giving me the option to see older versions, so I had to download an empty Dawn theme, copy and paste the original code from that.
I know youāre good to go, but wanted to leave my solution in case someone searches this.
Iām so glad weāre both up and running! XD
-Ashley
May be it will help,
{% if item.product.compare_at_price_max > 0 %} Regular Price: {{ item.product.compare_at_price_max | money }} Discount: {{ item.product.compare_at_price_max | minus:item.final_line_price | money }}