I dont see the compare price in my chopping cart when checking out

Hi, When I add a product to my shopping cart, how do I make the compare price visible. Right now when I add the following product, it will only show the final price in the shopping cart but I want the customer to see the discount theyre getting. On the product page the discount is visible, but shopping cart not

Take this product for example: https://bundoshop.nl/products/elisa-luxe-winterjas?variant=47717399429444

thanks!

Hello @nijntjelover

Here is the solution for your problem.

Please add below code in the sections/main-cart-items.liquid file


  {%- if item.original_price == item.variant.compare_at_price -%}
    {{ item.original_price | money }}
  {%- else -%}
    
      {{ item.variant.compare_at_price | money }}
    
    
      {{ item.original_price | money }}
    
  {%- endif -%}

Instead of this code


  {{ item.original_price | money }}

And add this code snippet to assets/component-cart-items.css file

.product-option .price-compare {
  text-decoration: line-through;
  margin-right: 4px;
}

.product-option .price-origin {
  color: #FF1111;
}
3 Likes

this worked. How do I make the final price #03b77a in stead of red?

Add this.

.product-option .price-origin {
    color: #03b77a;
}

Instead of this.

.product-option .price-origin {
  color: #FF1111;
}
1 Like

Hi, I have the same problem but changing the code didn’t help. Can you suggest a different solution, please?

product for reference: https://nudatelier.com/products/the-house-of-oud-just-before-edp

Hey @iffikhan30 the code doesn’t seem to work for my store, is there an updated one?

Hello @fashionshop1 what theme you are using?

@iffikhan30 It’s pay theme called “Zest”

1 Like

I Inbox you!

Hey, i currently have the same problem, the compare at price works for the product page but when i add it to the cart it does not show the compare price and neither in the checkout. I have tried with the method above but it did not work, and i also have the option in markets not selected. i am using the sense theme

Thank you so much :heart: God bless.