Jump to content

How to remove ‘sold out’ products from appearing in summary block

Recommended Posts

Our site has a summary block on the home page which we would like to use to display recently added products.

1) how do we prevent ‘sold out’ products from appearing in this block? Same question applies to other blocks - we would like to be able to use summary blocks and filter by tags, eg ‘vases’ so that it displays only vases for sale (not those which have been sold).

2) is it possible to generally format the ‘sold out’ label so that eg it is a different colour

3) we would like to display all of our sold out items on an archive page, currently called ‘Sold’ - and have used a summary block with a custom tag ‘sold’ to do this. Is it possible for this to have more than 30 items in it?

Thank you so much!

Link to comment
  • Replies 4
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...
On 6/25/2024 at 8:16 PM, SaraCrewe said:

Hi there - sure. This is the one where I don’t want to display sold out items.

https://www.byeligo.com/vessels

However we have another on the home page where we DO want to include sold out items..

You can use this code to Website Tools (under Not Linked/Main Navigation) > Custom CSS

body#collection-66204f83ad665577638c29ba .summary-item:has(.sold-out) {
    display: none !important;
}

 

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.