Does someone know how to change the design of price when a product is on sale?

Solved

Does someone know how to change the design of price when a product is on sale?

KimGottwald
Trailblazer
196 0 28

I would like to make the "new price" in the color red. Is this possible?


Thank you!

 

URL: https://suq5b8csct01fyzg-61270851797.shopifypreview.com/collections/rappid-test?sort_by=price-descen...

 

Im using the Trade theme.

 

Picture: 

Bildschirmfoto 2024-07-12 um 10.05.35 PM.png

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
7108 1688 2082

This is an accepted solution.

Hi @KimGottwald 

check this one. 

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

span.price-item.price-item--sale.price-item--last {
    color: red;
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1720818247632.png

     

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

View solution in original post

Replies 9 (9)

WalkYourStyle
Excursionist
303 32 47

Could you please navigate to your theme's code and within the 'Sections' folder, locate the file named 'main-collection-product-grid.liquid' or a similarly named file. In that file, find the

<div class="card-information"></div>

element. Once you have located it, please provide an image of the code for that element so that we can assist you further.

KimGottwald
Trailblazer
196 0 28

Sadly I can't find that part of the code:

 

Bildschirmfoto 2024-07-12 um 10.26.01 PM.png

Bildschirmfoto 2024-07-12 um 10.25.50 PM.png

Bildschirmfoto 2024-07-12 um 10.25.38 PM.png

Bildschirmfoto 2024-07-12 um 10.25.31 PM.png

    

WalkYourStyle
Excursionist
303 32 47

Click Ctrl + F and then search for "card__information"(double underscore)

WalkYourStyle
Excursionist
303 32 47

Try searching for it in the file 'card-product.liquid' which is located in the snippets folder

KimGottwald
Trailblazer
196 0 28

Like this?

 

Bildschirmfoto 2024-07-12 um 10.32.02 PM.png

WalkYourStyle
Excursionist
303 32 47

In your theme's code locate inside the Assets folder the file 'component-card.css'. At the bottom of the file paste this code

 

 

.price__sale .price-item .price-item--sale .price-item--last{
    .color: red;
}

 

 

Hope this helps!

KimGottwald
Trailblazer
196 0 28

This is not working sadly, but thank you!

WalkYourStyle
Excursionist
303 32 47

Corrected Version

.price-item--sale{
   color: red;
}

Made4uo-Ribe
Shopify Partner
7108 1688 2082

This is an accepted solution.

Hi @KimGottwald 

check this one. 

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

span.price-item.price-item--sale.price-item--last {
    color: red;
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1720818247632.png

     

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.