xavier-cusso Posted February 20, 2020 Share Posted February 20, 2020 Site URL: https://pelican-chiton-xwy4.squarespace.com/shop/fos-classic Hello, I would like to change "SOLD OUT" to "COMING SOON" labels on the YOU MIGHT ALSO LIKE section at the bottom of my Product page. https://pelican-chiton-xwy4.squarespace.com/shop/fos-classic (7.1) Is there any way to do that in the Custom CSS? Thanks, Xavier Link to comment
Solution paul2009 Posted February 20, 2020 Solution Share Posted February 20, 2020 (edited) See a post I wrote about this here: https://sf.digital/squarespace-solutions/squarespace-products-changing-sold-out-to-sold-or-something-else In summary, Go to Commerce > Product Status > Out of Stock. In the panel that opens, change the Sold Out description to your choice of wording. Edited November 29, 2021 by paul2009 unINK, xavier-cusso, emily.klein and 3 others 3 3 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
jteranti Posted March 4, 2020 Share Posted March 4, 2020 In the past I have cut and pasted code like that below into the "Page Header Injection Code" for individual pages, but this time it is not working. Any ideas? Am I missing something? .ProductItem-relatedProducts .product-mark.sold-out { visibility: hidden; font-size:0; } .ProductItem-relatedProducts .product-mark.sold-out:after { visibility: visible; content: 'Coming Soon'; font-size: 18px; } Link to comment
paul2009 Posted March 5, 2020 Share Posted March 5, 2020 The code I provided is CSS so, rather than Code Injection, it should be added to Design > Custom CSS. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
kiwistick Posted January 18, 2021 Share Posted January 18, 2021 Hi Paul! I just tried to use your code to change one product category from Sold Out to Coming Soon. Unfortunately it did not work. I changed all as per your description and added to the Footer, then saved. The products right now are still shown as Hidden, not sure this is the problem? But I guess not. Any other suggestions why this may be? Link to comment
tuanphan Posted January 20, 2021 Share Posted January 20, 2021 On 1/19/2021 at 1:02 AM, kiwistick said: Hi Paul! I just tried to use your code to change one product category from Sold Out to Coming Soon. Unfortunately it did not work. I changed all as per your description and added to the Footer, then saved. The products right now are still shown as Hidden, not sure this is the problem? But I guess not. Any other suggestions why this may be? Can you share your site url? We can check easier 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
paul2009 Posted January 20, 2021 Share Posted January 20, 2021 On 1/18/2021 at 6:02 PM, kiwistick said: I just tried to use your code to change one product category from Sold Out to Coming Soon. @kiwistick I sent you a direct message on Monday asking for more information. tuanphan 1 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
FRED10Q Posted February 28, 2021 Share Posted February 28, 2021 Hi @paul2009 I tried using your code and it did not work. Could you please message me? Thanks Link to comment
emily.klein Posted March 14, 2021 Share Posted March 14, 2021 On 2/21/2020 at 3:36 AM, paul2009 said: See a post I wrote about this here: https://sf.digital/squarespace-solutions/squarespace-products-changing-sold-out-to-sold-or-something-else Thanks @paul2009 this worked perfectly tuanphan and paul2009 1 1 Link to comment
emily.klein Posted March 30, 2021 Share Posted March 30, 2021 On 2/21/2020 at 3:36 AM, paul2009 said: See a post I wrote about this here: https://sf.digital/squarespace-solutions/squarespace-products-changing-sold-out-to-sold-or-something-else Hi @paul2009this is probably an embarrassingly obvious question, but if I want to use the code you provided here on more than one tag, do I need to duplicate the entire code and change the tag name or is there a simpler way to do it? Ie. add a comma or something after 'tag-mask' and then add an additional tag. <script> var oosCat = 'tag-mask''; var oosDesc = 'Coming Soon'; var a= ... Thanks! Link to comment
paul2009 Posted March 30, 2021 Share Posted March 30, 2021 16 minutes ago, emily.klein said: If I want to use the code you provided here on more than one tag, do I need to duplicate the entire code and change the tag name or is there a simpler way to do it? Hi @emily.klein The code that I posted is fairly simple and has been written to accept just one tag. You can't add additional tags or duplicate the code. Can you provide a few more details of what you want to achieve? A working link to the products on the site may also help. For example, do you products with different tags that need the same 'sold' message or do they each need different 'sold' messages per tag? Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
emily.klein Posted March 30, 2021 Share Posted March 30, 2021 12 hours ago, paul2009 said: Hi @emily.klein The code that I posted is fairly simple and has been written to accept just one tag. You can't add additional tags or duplicate the code. Can you provide a few more details of what you want to achieve? A working link to the products on the site may also help. For example, do you products with different tags that need the same 'sold' message or do they each need different 'sold' messages per tag? Hi Paul, Actually if I just tag all the products that I want to use this code for as "coming soon" (and not have the tags visible on the product pages) that will actually work and will be much simpler! Funny how things are always much clearer in the morning! Sorry to have bothered you. And thanks again for providing the code. Emily paul2009 1 Link to comment
Haf Posted May 15, 2021 Share Posted May 15, 2021 On 2/20/2020 at 4:36 PM, paul2009 said: See a post I wrote about this here: https://sf.digital/squarespace-solutions/squarespace-products-changing-sold-out-to-sold-or-something-else Thank you! Super easy to implement! paul2009 1 Link to comment
joshcohen Posted August 27, 2021 Share Posted August 27, 2021 Hi @paul2009 - Have you got similar bit of code for 7.1? As im trying to do the same to create an "In Stock" status circle on the products... Any help would be great! Link to comment
paul2009 Posted August 28, 2021 Share Posted August 28, 2021 8 hours ago, joshcohen said: I’m trying to do the same to create an "In Stock" status circle Can you explain a little more? An in-stock label would normally be an unnecessary distraction. A link to the products page may add context. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
joshcohen Posted August 29, 2021 Share Posted August 29, 2021 My client is a furniture company where stock is ordered and takes 12 weeks to manufacture and ship. However they have some floor stock they want to promote. Ie. have a label like “ready to ship” etc. so not for every product just certain tagged or categorised products that are ready to ship now. Thanks Link to comment
joshcohen Posted August 29, 2021 Share Posted August 29, 2021 So as I can’t use the “sold out” or “on sale” classes I thought there could be an alternative but of css/js to use to display only when products are tagged etc. like the 7.0 version Link to comment
paul2009 Posted August 29, 2021 Share Posted August 29, 2021 2 hours ago, joshcohen said: My client is a furniture company where stock is ordered and takes 12 weeks to manufacture and ship. However they have some floor stock they want to promote. Ie. have a label like “ready to ship” etc. so not for every product just certain tagged or categorised products that are ready to ship now. It will depend on whether custom manufactured products are shown with inventory, or if you set these products to zero and manage orders in another way. If only the 'ready to ship' items are sold online then you can use the built-in Limited Availability Labels feature to show a 'ready to ship' label automatically, without code. However, if custom manufactured products are sold online too, you'll need some code that can add a label to products with a certain tag. See my solution in this post: Adding a custom status badge to Squarespace Products. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
ShortAngryViking Posted August 30, 2021 Share Posted August 30, 2021 On 2/21/2020 at 5:36 AM, paul2009 said: See a post I wrote about this here: https://sf.digital/squarespace-solutions/squarespace-products-changing-sold-out-to-sold-or-something-else Paul. Thank You paul2009 1 Link to comment
stefan12345 Posted January 15, 2022 Share Posted January 15, 2022 On 2/20/2020 at 10:36 AM, paul2009 said: See a post I wrote about this here: https://sf.digital/squarespace-solutions/squarespace-products-changing-sold-out-to-sold-or-something-else In summary, Go to Commerce > Product Status > Out of Stock. In the panel that opens, change the Sold Out description to your choice of wording. Hey Paul, This article was exactly what I was looking for until I realized I needed to use multiple tags to correspond to different product status. For example. Products are available in person at a temporary retail location. So one product is at "a" location and another product at 'b" location. Is there different code that would allow for this? Link to comment
PPD Posted January 22 Share Posted January 22 Hi Paul, I too, would love to know if you have an update on this code for 7.1. The site I am creating is for Real Estate properties (being created as "Services" Products). I want to utilise the "sold out" badge when a property is successfully transacted, however I require two different Labels dependent on the category; being cat-For-Sale = "SOLD", or cat-For-Lease = "LEASED". So your code for 7.0 should be absolutely perfect for what I am trying to achieve, however I am using 7.1. I applied your code anyway, but to no avail. I'd love it if you can help me out. On 8/28/2021 at 8:27 AM, joshcohen said: Hi @paul2009 - Have you got similar bit of code for 7.1? As im trying to do the same to create an "In Stock" status circle on the products... Any help would be great! 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