Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Discounts do not appear in the basket

Solved

Discounts do not appear in the basket

DenaHome
Tourist
13 0 1
Accepted Solution (1)

Sam_Cnet
Shopify Partner
155 6 7

This is an accepted solution.

Hi @DenaHome ,

 

For this you would need to modify cart.liquid. You would use Liquid line_item.compare_at_price to display the discounted price. Then add a CSS class for the strikethrough effect. 

 

Lead Developer @ Achieve Applabs.
https://achieveapplabs.com

View solution in original post

Replies 3 (3)

Sam_Cnet
Shopify Partner
155 6 7

This is an accepted solution.

Hi @DenaHome ,

 

For this you would need to modify cart.liquid. You would use Liquid line_item.compare_at_price to display the discounted price. Then add a CSS class for the strikethrough effect. 

 

Lead Developer @ Achieve Applabs.
https://achieveapplabs.com
DenaHome
Tourist
13 0 1

Ok, so what to write in css?

Sam_Cnet
Shopify Partner
155 6 7

Hi @DenaHome,

 

css can be inline like so:

 

<span style=“text-decoration: strike-through” >

 

Or give it a class name and place the style in between 

 

<head>

  .alt-price {
    text-decoration: strike-through;

  }

</head>

<span class=“alt-price” >

Lead Developer @ Achieve Applabs.
https://achieveapplabs.com