Jump to content

Change Sold Out Text on Specific Products

Recommended Posts

Add to Design > Custom CSS

/* Sold out to CLosed */
.summary-thumbnail-container[href*="drawing-painting-animals-camp-y9klw"] .product-mark.sold-out {
    font-size: 0 !important;
}
.summary-thumbnail-container[href*="drawing-painting-animals-camp-y9klw"] .product-mark.sold-out:before {
    content: "Closed";
    font-size: 18px !important;
}

image.thumb.png.757009b9ae6b14a66668ec85598d1e4e.png

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
  • 10 months later...
On 10/8/2022 at 12:17 PM, tuanphan said:

Add to Design > Custom CSS

/* Sold out to CLosed */
.summary-thumbnail-container[href*="drawing-painting-animals-camp-y9klw"] .product-mark.sold-out {
    font-size: 0 !important;
}
.summary-thumbnail-container[href*="drawing-painting-animals-camp-y9klw"] .product-mark.sold-out:before {
    content: "Closed";
    font-size: 18px !important;
}

image.thumb.png.757009b9ae6b14a66668ec85598d1e4e.png

Hello @tuanphan do you have the code to remove totally the text SOLD OUT?

Link to comment
14 minutes ago, SacredCrystal said:

do you have the code to remove totally the text SOLD OUT?

Add the following to Store Settings > Advanced > Page Header Code Injection for the store page. Please see per-page code injection.

<style>

  .product-mark.sold-out {
  
    display : none;
    
    }
    
  </style>

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 3 weeks later...
On 8/12/2023 at 1:03 AM, creedon said:

Add the following to Store Settings > Advanced > Page Header Code Injection for the store page. Please see per-page code injection.

<style>

  .product-mark.sold-out {
  
    display : none;
    
    }
    
  </style>

Let us know how it goes.

It worked alright, thank you!!

Is the there a way to edit the email notification text?

"Get notified by email when this product is in stock."

image.thumb.png.18b6e9e34c36963a2566076759b5cd29.png

Link to comment
3 hours ago, SacredCrystal said:

Is the there a way to edit the email notification text?

 

 

<style>

  .product-details .product-restock-notification:not( [ hidden ] ) .product-restock-cta {
  
    visibility : hidden;
    
    }
    
  .product-details .product-restock-notification:not( [ hidden ] ) .product-restock-cta::before {
  
    content : '[enter your custom waitlist email text here between single quotes replacing square brackets]';
    visibility : visible;
    
    }
    
  </style>

This is for v7.1.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 2 months later...
On 8/27/2023 at 9:24 PM, creedon said:
 

 

<style>

  .product-details .product-restock-notification:not( [ hidden ] ) .product-restock-cta {
  
    visibility : hidden;
    
    }
    
  .product-details .product-restock-notification:not( [ hidden ] ) .product-restock-cta::before {
  
    content : '[enter your custom waitlist email text here between single quotes replacing square brackets]';
    visibility : visible;
    
    }
    
  </style>

This is for v7.1.

Let us know how it goes.

 

It worked perfect, but the *Sold Out* text keeps showing in the single product page. Is there a way to be removed?

Thank you.

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.