Jump to content

Automatically Hide Sold Items in 7.1 (vs. marked "unavailable"

Go to solution Solved by paul2009,

Recommended Posts

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. 

 

Screen Shot 2021-10-29 at 3.51.09 PM.png

Edited by Guest
spelling, new photo
Link to comment
  • Guest changed the title to Automatically Hide Sold Items in 7.1 (vs. marked "unavailable"
  • Replies 7
  • Views 2.6k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution
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  ⬇️

About me: I'm Paul. A SQSP User for 18 yrs, I've been a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing 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 free. You can thank me by clicking one of the feedback emojis below. Coffee fuels my work.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

Link to comment
  • 1 year later...
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.

About me: I'm Paul. A SQSP User for 18 yrs, I've been a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing 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 free. You can thank me by clicking one of the feedback emojis below. Coffee fuels my work.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

Link to comment
  • 2 months later...
  • 2 months later...
  • 3 months later...
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

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.