Jump to content

Exclude Sold Out Items in Product Summary Block

Recommended Posts

On 12/5/2022 at 5:22 AM, E_J_L said:

 @tuanphan I would also like to automatically hide 'sold out' products. I can't use Paul2009's code because I'm not using 7.1.

The following code works: 

<style>
  .sold-out {
    display: none;
}
</style>

This works too in custom css:

div.sold-out {
    display: none;
}

But as Bourlonc said, it leaves a blank space where the sold out product was. How can I avoid this?

I am using a Summaries Block and you mentioned that this might be achieved using its 'featured only' option. But how do I automatically change the items from featured to not featured when they sell out?

www.hewn.ie/vip-shop-access-home

With this type of layout, no way to remove space. You can consider changing to another layout, eg: Grid

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.