Jump to content

Hide "Sold out" badge from main product page only.

Go to solution Solved by tuanphan,

Recommended Posts

  • Solution
On 3/23/2021 at 2:54 PM, pottedplant77 said:

Add to Design > Custom CSS

/* List page - hide sold out */
body.view-list .product-mark.sold-out {
    display: none;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 year later...

Hi there @tuanphan – thank you for this. I'd so appreciate your help.

What about the opposite problem – remove 'sold out' from individual product page? I'd either like it removed, or preferably changed to Coming soon.

I was also wanting to change the copy on the waitlist for this one item only (not universally across the site). I'd like it to say 

Be notified when this dress goes on sale.

JOIN THE WAITLIST

The website is www.dotandmila.com

and this product page is https://dotandmila.com/shop-1/p/amelia-celebration-dress

(This is a new product that I'm trying to build interest in before launching, NOT a sold out item. I have removed the variants so the waitlist form displays.)

Thanks so much!

Alice

 

 

 

 

 

Screen Shot 2022-08-20 at 2.11.53 pm.png

Link to comment
22 hours ago, AliceGage said:

Hi there @tuanphan – thank you for this. I'd so appreciate your help.

What about the opposite problem – remove 'sold out' from individual product page? I'd either like it removed, or preferably changed to Coming soon.

I was also wanting to change the copy on the waitlist for this one item only (not universally across the site). I'd like it to say 

Be notified when this dress goes on sale.

JOIN THE WAITLIST

The website is www.dotandmila.com

and this product page is https://dotandmila.com/shop-1/p/amelia-celebration-dress

(This is a new product that I'm trying to build interest in before launching, NOT a sold out item. I have removed the variants so the waitlist form displays.)

Thanks so much!

Alice

 

 

 

 

 

Screen Shot 2022-08-20 at 2.11.53 pm.png

Add to Design > Custom CSS

.product-mark.sold-out {
    font-size: 0;
}
.product-mark.sold-out:before {
    content: "Coming soon";
    font-size: 18px;
}
span.product-restock-cta {
    font-size: 0 !important;
}
span.product-restock-cta:before {
    content: "Be notified when this dress goes on sale";
    font-size: 20px;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

This works perfectly on the product page that is coming soon, but it has changed every sold out item to coming soon. So it is only the 'Amelia celebration dress' that is coming soon – the other ones are gone. 

Thanks again for your help, I appreciate it so much!

Best,

Alice

 

Screen Shot 2022-08-22 at 11.39.29 am.png

Screen Shot 2022-08-22 at 11.40.18 am.png

Screen Shot 2022-08-22 at 11.41.22 am.png

Link to comment
On 8/22/2022 at 8:44 AM, AliceGage said:

This works perfectly on the product page that is coming soon, but it has changed every sold out item to coming soon. So it is only the 'Amelia celebration dress' that is coming soon – the other ones are gone. 

Thanks again for your help, I appreciate it so much!

Best,

Alice

 

Screen Shot 2022-08-22 at 11.39.29 am.png

Screen Shot 2022-08-22 at 11.40.18 am.png

Screen Shot 2022-08-22 at 11.41.22 am.png

You mean do this for some specific products, not all sold out?

If yes, can you add tag: coming-soon for some products, then share link to a product? I will try test some code

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
1 hour ago, tuanphan said:

You mean do this for some specific products, not all sold out?

If yes, can you add tag: coming-soon for some products, then share link to a product? I will try test some Ycode

 

Yes that's right, specific products.

My mistake – I made a category, not a tag. I've fixed that now.

The urls are: https://dotandmila.com/shop-1/p/ettie-gingham-dress and https://dotandmila.com/shop-1/p/amelia-celebration-dress

I need code that I can use for other products in the future without having to bother you again – is that possible?

Thank you again!

 

 

 

Screen Shot 2022-08-23 at 2.48.18 pm.png

Link to comment

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.