Skip to main content

hi there, 

 

I would like to know how to limit the number of products displayed in an abandon cart block.  I am working with a client who sells bundles and these bundles can have up to 24 products in them.  When all of these products are displayed the email is clipped. 

Ideally I would like it to limit so it isn’t clipped.  Maximum 6 I guess?

 

Thanks

 

Hi @MisterEcomm,

That's a very interesting question. Also interesting that these bundles are all separate products. I would probably choose, if possible, to only list the bundle and include only the product names for all the products included in the bundle, if they're shown as being part of a bundle.

This however takes the building of these blocks to a more advanced level.

But, to answer your question, yes it's possible to only list a max amount of products in an array.

First I suggest to take a look at this page and specifically at the 'slice’ Django filter that you could use for this. https://developers.klaviyo.com/en/v1-2/docs/glossary-of-variable-filters 

Also take a look at this, how to use conditional filters (if, else) - https://help.klaviyo.com/hc/en-us/articles/4408802648731#01FJZ2P71QFT79P9A6ZRV4FF3C which might come in handy

Last, there is a topic, a bit related on the community that shows how to limit the amount of results in an array which might help.

 

Let me know if this helps.

Omar Lovert // Polaris Growth // Klaviyo Master Platinum Partner

We help with e-commerce growth through CRO, Klaviyo and CVO


Reply