Shopify themes, liquid, logos, and UX
I want to replace the price of a sold out item with "SOLD OUT" on my main store page. I dont wanna do this to the product page, just the main collections page. Any help?
Site: reticentofficial.com
Solved! Go to the solution
This is an accepted solution.
Hi @dgonz ,
You can add below CSS in the theme.scss file of the theme.
.price--sold-out .price__regular {
display: none;
}
To edit the theme.scss, go to Online store -> Themes > Edit code > Search (theme.scss).
Please accept this solution if this works for you.
Thanks,
This is an accepted solution.
As there is no different class in both the pages so it is taking common CSS but you can solve by adding one more CSS
.product-template__container .price--sold-out .price__regular {
display: block;
}
Hello @dgonz, please explain your problem. Provided details do not show a clear picture of the problem. Explain your problem with reference pictures.
I want to hide the price of sold out products and only show the sold out badge. But I only want to do this on the main collection pages like the one here. Not on the product pages.
This is an accepted solution.
Hi @dgonz ,
You can add below CSS in the theme.scss file of the theme.
.price--sold-out .price__regular {
display: none;
}
To edit the theme.scss, go to Online store -> Themes > Edit code > Search (theme.scss).
Please accept this solution if this works for you.
Thanks,
Thank you that worked, but now on the product page, the price is gone, anyway I can get that back?
This is an accepted solution.
As there is no different class in both the pages so it is taking common CSS but you can solve by adding one more CSS
.product-template__container .price--sold-out .price__regular {
display: block;
}
how did you add that sold out box in the first place?
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025