All Collections
E-mails
Design of an email
Personalize an email
How do I set the number of dynamic products in a loop?
How do I set the number of dynamic products in a loop?

Want to put a limit on the number of products displayed in a dynamic row? Then read through this article.

Carola avatar
Written by Carola
Updated over a week ago

A looped dynamic product row shows as many products as matched the display condition.

For example: are you using a row with all abandoned cart products? If a customer had 20 products in the cart, show all 20 products in the email.

It is possible to set a maximum number of products for the dynamic row. You do this as follows:

  • Step 1. Select the dynamic product row.

  • Step 2. Under Display condition click on Change condition.

  • Step 3. In the before box is the liquid for the dynamic row. In this liquid, add a limit. For example:

{% for product in last_ordered_products_collection_array limit: 3 %}

Up to three products are now shown from this dynamic product row.

Step 1:

Step 2:

Step 3:

Did this answer your question?