Re: Showing Cross-Over Price In Cart Drawer (Dawn Theme)

Solved

Showing Cross-Over Price In Cart Drawer (Dawn Theme)

bellevo
Pathfinder
91 0 24

Hey,

Is There a way to show the "Cross-Over Price" In the cart drawer? I will add an image of the issue and outcome below. Thanks in advance!

My site url: https://bellevodesign.com/

The Issue:

Screenshot 2024-08-04 131017.png

The Desired Outcome:

Screenshot 2024-08-04 131025.png

Accepted Solution (1)
Guleria
Shopify Partner
3950 791 1123

This is an accepted solution.

Try this 

snippets -> cart-drawer.liquid

at line no. 159 replace this code

 

 {{ item.original_price | money }}

 

with this one

 

 
                              <div class="price__sale" style=" display: block; ">
              {% if item.variant.compare_at_price > item.final_price %}
              <span> <s class="price-item price-item--regular">{{ item.variant.compare_at_price | money }}</s></span>
              {% endif %}
              <span class="price-item price-item--sale price-item--last">{{ item.original_price | money }}</span>
            </div> 
                             

 

- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder

View solution in original post

Replies 10 (10)

Guleria
Shopify Partner
3950 791 1123

Hello @bellevo ,

 

Use this code

<div class="price__sale" style=" display: block; ">
              {% if item.variant.compare_at_price > item.final_price %}
              <span> <s class="price-item price-item--regular">{{ item.variant.compare_at_price | money }}</s></span>
              {% endif %}
              <span class="price-item price-item--sale price-item--last">{{ item.final_price | money }}</span>
            </div> 

 

Instructions I think you already know btw if not use it in 
Sections -> cart-notification-product.liquid
I use it at line no. 43 just after {%- endfor -%} and before </dl>

Thanks

- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
bellevo
Pathfinder
91 0 24

Hey, this didn't work for some reason.

Screenshot 2024-08-04 135026.png

Didnt change anything in the cart drawer:

Screenshot 2024-08-04 135033.png

Guleria
Shopify Partner
3950 791 1123

I'm using Dawn theme version 15.0.2

And here you can check
 https://client-store-5.myshopify.com/products/tiffany-co-edwardian-vintage-engagement-ring-2674

- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
bellevo
Pathfinder
91 0 24

Hey,

It doesn't work on your page either.

Screenshot 2024-08-04 140258.png

Guleria
Shopify Partner
3950 791 1123

It's a cart page not a cart drawer/popup.
Check your initial question you asked for the cart drawer not for the cart page.
btw you can use the same code for the cart page.  

- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
bellevo
Pathfinder
91 0 24

I know, the code does not work in the cart drawer.

Guleria
Shopify Partner
3950 791 1123

Now what I can say.
 btw you can check in the screenshot 
cart-drawer.png

- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
bellevo
Pathfinder
91 0 24

Does not work on my page for some reason. You can see from my screenshot.

Screenshot 2024-08-04 135026.png

Does not change anything in the drawer

Screenshot 2024-08-04 141831.png

Guleria
Shopify Partner
3950 791 1123

This is an accepted solution.

Try this 

snippets -> cart-drawer.liquid

at line no. 159 replace this code

 

 {{ item.original_price | money }}

 

with this one

 

 
                              <div class="price__sale" style=" display: block; ">
              {% if item.variant.compare_at_price > item.final_price %}
              <span> <s class="price-item price-item--regular">{{ item.variant.compare_at_price | money }}</s></span>
              {% endif %}
              <span class="price-item price-item--sale price-item--last">{{ item.original_price | money }}</span>
            </div> 
                             

 

- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
bellevo
Pathfinder
91 0 24

This works, thank you so much