Jump to content

Automating Visibility Change from Public to Hidden when a Product is Sold Out

Recommended Posts

  • Replies 1
  • Views 191
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

1 hour ago, TomSmallcombe said:

I was just wondering if there was an automated way to change an inventory status to hidden when a product is sold out rather than having to do this manually.

It isn't possible to change the product status when a product sells out, but you can hide the product(s) from the Product List Page (PLP) by adding this to Design > Custom CSS:

/* Hide sold out products on PLP */
.grid-item.post-type-store-item.sold-out {
  display: none;
}

The product will then automatically reappear when stock is replenished.

Circumstances can be different from store to store but, for the benefit of anyone reading this, I'd usually recommend showing the sold out products, not hiding them. A bold 'sold out' label typically communicates that your products are in demand and could encourage sales.

 

Did this help? Please give feedback by clicking an icon below  ⬇️

About me: I'm Paul, a SQSP user for over 18 yrs and 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 completely free. You can thank me by selecting a feedback emoji below. Buying a coffee is optional.

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

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.