How to show the 'sale price' discount on cart page in venture layout?

Boykolos
New Member
6 0 0

Hi guys, 

 

I have a question. I would like to add a price tag that says how much people save when they add a product to their cart that's on sale. I have attached an example, which is actually an 'automatic discount' that applied to the cart. I just want to implement this for every product that people add to their cart when it is on sale.

Screenshot 2020-01-22 at 23.58.31.png

Replies 9 (9)

NAVEKI
Shopify Partner
17 0 6

I don't see why not. If you're referring to your cart page, you can simply show {{ line_item.price }} with {{ line_item.final_line_price }} below it. I usually look over needed objects here: https://www.shopify.com/partners/shopify-cheat-sheet

MS-WEB-DESIGNER
Shopify Partner
3012 181 485

Dear Boykolos,

 

Please share your store url and details at: https://www.task4store.com/pages/contact-us

 

Thanks & Regards
MS Web Designer

Boykolos
New Member
6 0 0
my web site url is: https://www.brenchstore.com/

thanks in advance


KetanKumar
Shopify Partner
36844 3636 11978

Hello, @Boykolos 
STEP - 1

1. Go to Online Store->Theme->Edit code
2. Sections -> / cart-template.liquid -> see tha step 1 attachment.Step 1Step 1

 STEP - 2

1. Go to Online Store->Theme->Edit code
2. Asset->/theme.scss.liquid-> paste bellow code in bottom of file

span.cart_compare_at_price {
display: block;
padding-right: 20px;
font-size: 17px;
color: #ff0000;
text-decoration-line: line-through;
}

 

Want to modify or custom changes on store hire me.

If helpful then please Like and Accept Solution.

Email: bamaniyaketan.sky@gmail.com

Skype : bamaniya.sky

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Boykolos
New Member
6 0 0

It doesn't work.

Or at least, not for all products. 

I need to show the original price not only in the product cart but also in the final price of the cart. 

Can you help me in this?

NAVEKI
Shopify Partner
17 0 6

I see in your store that you have implemented what you're asking for, do you still need help?

Boykolos
New Member
6 0 0

@NAVEKI wrote:

I see in your store that you have implemented what you're asking for, do you still need help?



I put the code but there is always a problem with the original price;

it shows only the original price of the singular product and not of the sum of the multiples if you pick the same product several times.

 

ex. 

original price: 30€

discount price: 20€

product picked: x1

 

how it should be shown:

original price: 90€

discount price: 60€

products: x3

 

how it is shown:

original price: 30€

discount price: 60€

products: x3

NAVEKI
Shopify Partner
17 0 6

At this code here:
<span class="comp_at_price">€26,00</span>

 

you might be using {{ line_item.original_price }} swap it for {{ line_item.original_line_price }}. line_item.original_line_price should return "line_item.original_price multiplied by line_item.quantity".

GeorginaT
Tourist
11 1 2

Hi, I try to use this code but it doesnt work.