My Cart drawer is showing discounted price crossed out, rather than original price

About 18 months ago I came across this article below posted by WingP. It was to do with a cart issue incorrectly showing the sale price crossed out, rather than the original price, when items are discounted.

URL: https://community.shopify.com/c/shopify-design/my-cart-section-doesn-t-cross-out-my-original-price-and-show-my/m-p/1809205/thread-id/483157

I just had an identical issue, so I duplicated the accepted solution copied and pasted the code exactly as described in the right place, in the correct liquid file, but it didn’t fix the issue. My slide out cart is still showing the wrong price crossed out.

Can someone please assist? It’s not allowing me to attach PNG images to show my cart and also a snip of where I’ve pasted the code.

Hi @AN2024

Please share your store URL

Hi @Dan-From-Ryviu ,

I cant share the store URL at the moment because my store currently under development and has a pwd which I’m not able to share. But I can give you temp collab access if you provide an email. Would that suffice?

I sent you a message

@AN2024
You get it wrong. That post refer the cart page not drawer cart. So, you pasted code in wrong place.

Solution-

Paste below code on marked place!

{% if item.original_price != item.product.compare_at_price %} 
  <del>{{ item.product.compare_at_price | money }}</del> 
{% endif %}

Hi @shamsulhuda yes Dan fixed it for me, thanks though.

Hello, I am having the same problem here, I added your code and it worked! The only thing is, I would like that the discounted price is shown as red and a big bigger font. (1)

(2) I would also like that the same happens with the “Total” amount, so that the original price is shown next to the discounted price (also in red) in the total amount.

(3) and I would like to remoze the discounted price in the top-right

I tried adding a picture but i am not sure if it shows. Please let me know if you could help!

Hello Dan-From-Ryviu,

I am having the same problem here, I added your code and it worked! The only thing is, I would like that the discounted price is shown as red and a big bigger font. (1)

(2) I would also like that the same happens with the “Total” amount, so that the original price is shown next to the discounted price (also in red) in the total amount.

(3) and I would like to remoze the discounted price in the top-right

I tried adding a picture but i am not sure if it shows. Please let me know if you could help!