How do I code a crossed out compare-at price on my cart page?

What code and where do i have to place it when i want the compare at price crossed out next to the TOTAL price?

See picture, what code and where do i have to place it to got that on my website? I want the text: Vandaag Besteld, Vandaag Bezorgd (Shipping icon). Betaal Later met Klarna (klarna icon). 30 dagen Bedenktijd (clock icon)

Thanks a lot for your help!!

Hey, @CHASN

Happy to help. Just to confirm here, are you looking for one price to be slashed (let’s say the 49.95) with the sale price beside it (Example 39.95)?

If there is anything else I can help you with, please let me know.

Hey, @CHASN

Just looping back here to confirm your question in this thread and if you still require assistance.

Hi! Thanks for your help.
I still need help with my question.
Exactly, i want the total price crossed out and the sale price beside normal

Gotcha, this feature is built into Shopify by default. By utilizing the “price” and the “compare at price” product fields you can display a sale price as you would like.

Check out our guide here on how you can set this up for your products. If there is anything else I can help you with, please let me know.

no that’s not what I mean.
Look at the picture. I want the total price also crossed out

By total price (in your screenshot) you want a product that is regular priced at 44,95 to display as 29,95, correct?

This is the Shopify ‘compare at price’ feature. The ‘compare at price’ is what you would set the regular price of the product to be. In your example, you would enter 44,95 in this box. Then in your regular price field, you would enter how much you want to charge for the product. This is where you would enter 29,95.

By doing this, you would get a similar result. Here is my test store for example:

If there is anything else I can help you with, please let me know.