Hiding sold out price

EileenTCP
New Member
3 0 0

Hi

I was wondering how am I supposed to hide sold out price on my website. I am using the theme debut. 

Tried looking through the forum and trying ti but not much chance here.

Thanks!

0 Likes
Denis_A
Shopify Partner
273 39 46

Hi @EileenTCP 

What's your store URL?

Get help with your Shopify store that you are looking for.
Shoot me an email: denis@thewebave.com
https://thewebave.com/
0 Likes
EileenTCP
New Member
3 0 0
PlantLady
New Member
3 0 0

Hi Eileen. 

 

I am struggling with the exact same thing. I dont mind showing that a product is sold out, but I want to hide the price. Did you manage to fix it?

 

Kind regards

Plantlady

0 Likes

@PlantLady 
@EileenTCP 

1. In your Shopify Admin go to: online store > themes > actions > edit code
2. Find Asset > theme.scss.liquid and paste this at the bottom of the file:

 

.template-product .price--sold-out .price__regular,
.template-product .price--sold-out .price__sale, 
.grid-view-item--sold-out .price__regular,
.grid-view-item--sold-out .price__sale{
    display: none !important;
}

 



Please let me know whether it works.

Kind regards,
Diego

◦ Problem Solved? ✔️ Please click on Accept as Solution and like.
◦ Add a slider to product page images: Minimal theme | Debut theme | Brooklyn theme
◦ Contact: ezfycode@gmail.com.
PlantLady
New Member
3 0 0

Thank you very much, it worked!!!!

0 Likes

@PlantLady 

You're welcome!

Please don't forget to click on the button "Accept as Solution" and "Like" below my answer to help other people in the community with similar issues.

Thanks!

◦ Problem Solved? ✔️ Please click on Accept as Solution and like.
◦ Add a slider to product page images: Minimal theme | Debut theme | Brooklyn theme
◦ Contact: ezfycode@gmail.com.
0 Likes
PetroNellaEdwar
New Member
7 0 0

Hi, I tried this but it doesn't work for my website even though I am working with the debut theme as well.. Is there an updated code or something else I can try?

0 Likes

@PetroNellaEdwar 

Have you tried this solution yet? Let me know whether it works for you.

Kind regards,
Diego

◦ Problem Solved? ✔️ Please click on Accept as Solution and like.
◦ Add a slider to product page images: Minimal theme | Debut theme | Brooklyn theme
◦ Contact: ezfycode@gmail.com.
0 Likes
PetroNellaEdwar
New Member
7 0 0

Hi, thank you for following up! Unfortunatly it doesn't work for me Prices are still shown.

Skärmavbild 2021-04-26 kl. 09.47.03.png

0 Likes