Guest Posted October 29, 2021 Share Posted October 29, 2021 (edited) Site URL: https://jscg50-cms.squarespace.com My 7.1 Commerce site sells mostly 1-off art pieces. Once an item has sold, I want it to be removed from public view. I do not want to show a tag of "unavailable" under an item or have a pop-up note that the item is not available for sale; I do not want to monitor the site to see what needs to be hidden manually. I'd like this to be automated. I know there is value to showing past items, which seems to be SS's default justification when asked why this feature isn't a toggle on/ toggle off option, but this is a detrimental default for my store. These items do sell out quickly and it annoys our customers when we are essentially offering something they can't have. Can anyone please help with a code for this or with a suggestion on where I can find a resolution for this problem? Thank you! Site is jscg50-cms.squarespace.com. Password is: jscg50 To see an example: Online Shop > Vases > Shop Vases ... view "All" ... 1st item is marked unavailable, but I would like this to simply disappear from view once it's been purchased. Edited October 29, 2021 by Guest spelling, new photo Link to comment
Solution paul2009 Posted October 30, 2021 Solution Share Posted October 30, 2021 17 hours ago, kcasey said: Once an item has sold, I want it to be removed from public view. I do not want to show a tag of "unavailable" under an item or have a pop-up note that the item is not available for sale; I do not want to monitor the site to see what needs to be hidden manually. I'd like this to be automated. There isn't a built in feature for this, but I produced some code that will do this automatically for you. You'll find it in this guide: Hide sold products on a Squarespace 7.1 website. If this post has helped you, please click a 'Like' or 'Thanks' icon below ⬇️ 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
E_J_L Posted December 4, 2022 Share Posted December 4, 2022 @paul2009 Is there a way to do this on 7.0? I tried your code and it doesn't work, as expected. Thanks Link to comment
paul2009 Posted December 4, 2022 Share Posted December 4, 2022 10 minutes ago, E_J_L said: Is there a way to do this on 7.0? I tried your code and it doesn't work, as expected. The guide is for any site built on Squarespace 7.1. I haven't written a solution for any of the 7.0 template families (they are all different) but it should be possible. 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
TNF477 Posted February 24, 2023 Share Posted February 24, 2023 This worked for me! Thanks for the work and the coding! Link to comment
bluepanda Posted May 18, 2023 Share Posted May 18, 2023 (edited) The solution does not appear to work for a summary block that filters products by tag. Does anyone have a suggestion for a fix ? Edited May 18, 2023 by bluepanda Link to comment
KristenRuthSmith Posted September 8, 2023 Share Posted September 8, 2023 On 5/18/2023 at 7:55 AM, bluepanda said: The solution does not appear to work for a summary block that filters products by tag. Does anyone have a suggestion for a fix ? I have this same issue. Interested in a fix. Want the summary block to still show the product, but remove the "sold out" marker. @tuanphan any thoughts? Link to comment
creedon Posted September 8, 2023 Share Posted September 8, 2023 1 hour ago, KristenRuthSmith said: Want the summary block to still show the product, but remove the "sold out" marker. Please post the URL for a page on your site where we can see your issue. A link to the backend of the your site won’t work for us, i.e. a url that contains /config/. Please set up a site-wide password, if your site is not public and you've not already done so. Post the password here. Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site. Please read the site-wide password and how to share a link documentation to understand how they work. We can then take a look at your issue. You may find How to post a forum question post useful. 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment