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

Highlighted
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

0 Likes
Highlighted
Shopify Partner
701 96 124

Hello, @Boykolos 

Please share your site URL,

So I will check and provide a solution here.

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 Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
Highlighted
Shopify Partner
10 0 0

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

0 Likes
Highlighted
Shopify Partner
946 35 112

Dear Boykolos,

 

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

 

Thanks & Regards
MS Web Designer

Thanks & Regards
MS Web Designer
Get Shopify Help | Get Free Store Audit Report
20000+ Task Completed
1000+ Satisfied Client
9.9*/10 Customer Rating
10*/10 Shopify Services Marketplace
0 Likes
Highlighted
New Member
6 0 0
my web site url is: https://www.brenchstore.com/

thanks in advance


0 Likes
Highlighted
Shopify Partner
701 96 124

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 Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
Highlighted
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?

0 Likes
Highlighted
Shopify Partner
10 0 0

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

0 Likes
Highlighted
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

0 Likes
Highlighted
Shopify Partner
10 0 0

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".

0 Likes