Jump to content

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

Recommended Posts

  • Replies 1
  • Views 270
  • 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  ⬇️

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

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.