Adding Compare Price and Amount Off In Cart

Hello there,

I understand that this needs coding. But does anyone know a good way to implement a compare price and amount off to the cart drawer? (refer to screenshot) A great example I found of this is https://icon-amsterdam.com/ cart drawer. I have tried it before and got the styling done but I couldnt get the prices to change when adding an item to cart and such.

My cart-drawer.liquid code:

{%- if settings.cart_type == 'drawer' -%}
  
    
  

{%- endif -%}

Hello, looks like this cart drawer is from Dawn theme. If you can grant me collaborator access to your theme and theme code, I will do it for you.

Hey @renssnce ,

I’ve recreated your cart-drawer.liquid code to incorporate the changes you asked for. We’ve added a new price comparison section and relevant JS that detect cart updates and updates the total price accordingly. Just copy and paste this code below:

{%- if settings.cart_type == 'drawer' -%}
  
    
  

  
  
{%- endif -%}

Thanks,
Shubham | Untechnickle