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?
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025