OzBrowning Posted February 19, 2021 Share Posted February 19, 2021 Site URL: https://www.rookspress.com/featured Hi, is it possible to exclude sold out items from summary blocks on the Wells template? Ideally I would like them to be excluded completely, i.e. no blank spaces. The blocks are on the following page: https://www.rookspress.com/featured Thanks, Oz Link to comment
tuanphan Posted February 22, 2021 Share Posted February 22, 2021 Hi. Have you found the solution yet? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
OzBrowning Posted February 23, 2021 Author Share Posted February 23, 2021 Hi Tuanphan, not yet. The theme doesn't seem to have an ID for sold-out product blocks, so I think that means I'd have to use jquery which is outside of my expertise. Link to comment
paul2009 Posted February 23, 2021 Share Posted February 23, 2021 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: About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
OzBrowning Posted February 23, 2021 Author Share Posted February 23, 2021 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment