MacUn Posted October 6, 2022 Share Posted October 6, 2022 Site URL: https://caper-harpsichord-tasl.squarespace.com/ Is there a bit if code that would change my Sold Out flags to Closed on specific products? I'd like a way to specify an item is no longer available. Thanks! https://caper-harpsichord-tasl.squarespace.com/all pw: art Link to comment
tuanphan Posted October 8, 2022 Share Posted October 8, 2022 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; } helloVlad 1 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
SacredCrystal Posted August 11, 2023 Share Posted August 11, 2023 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; } Hello @tuanphan do you have the code to remove totally the text SOLD OUT? Link to comment
creedon Posted August 11, 2023 Share Posted August 11, 2023 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. tuanphan 1 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
SacredCrystal Posted August 27, 2023 Share Posted August 27, 2023 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." Link to comment
creedon Posted August 27, 2023 Share Posted August 27, 2023 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. tuanphan 1 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
SacredCrystal Posted November 10, 2023 Share Posted November 10, 2023 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment