Jump to content

Exclude 'Sold Out' items from summary blocks?

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

It is possible to do this using JavaScript. The template won't actually make any difference in this case because Summary Blocks are the same on all templates.

If a product is sold-out, the Summary Block item will display a product mark with the sold-out class, so it's possible to identify and remove the summary-items that have children with this class.

Bear in mind that this may result in fewer items being displayed in the summary block, as shown in your Mothership collection:

985365026_Screenshot2021-02-23at11_59_16.thumb.png.fd0b729ae5813dee36b377600fe87e21.png

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to 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 is optional.

Link to comment

Thanks Paul,

I was worried about the blanks, I presume that getting it to 'skip over' blanks is not going to be possible as it would require changing the way the product summaries are programmed?

If so I'll probably just live with the sold out elements being visible, and use it as incentive to restock!

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.