Jump to content

How do I get rid of sold out product price

Go to solution Solved by joseph81,

Recommended Posts

Posted

Hello,

I wish to hide the price of an item once it has sold on my website.

I've researched many forum threads, talked on live chat, tried many codes. But have not come across desirable result. It would end up hiding all prices.

Please see my website https://www.vincentlussier.com

I have managed to set the prices to $0, but I wish to have no price on sold item, just to say "Sold".

Any help would be greatly appreciated, thank you.

Vincent

Posted (edited)

Then you need to apply this CSS in the Custom CSS panel:

.ProductList-item.sold-out .product-price,
.ProductItem.sold-out .product-price {
   display: none;
}
Edited by joseph81

Jozsef Kerekes - Front-end developer and Squarespace enthusiast
My Blog: https://ui-workarounds.com
If you like my answer, please give me an upvote/like. Highly appreciated.

 

 

Posted

Please try this one:

 

.ProductList-item.sold-out .product-price,
.ProductItem.sold-out .product-price {
   display: none!important;
}

 

Jozsef Kerekes - Front-end developer and Squarespace enthusiast
My Blog: https://ui-workarounds.com
If you like my answer, please give me an upvote/like. Highly appreciated.

 

 

  • 1 year later...
Posted
On 1/9/2023 at 12:30 PM, joseph81 said:

Please try this one:

 

.ProductList-item.sold-out .product-price,
.ProductItem.sold-out .product-price {
   display: none!important;
}

 

Hi, I am having this same issue. I wonder if there is an updated fix?

Many thanks!

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.