All Collections
Personalizing through liquid
Dynamic products: set the number of products displayed
Dynamic products: set the number of products displayed

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

When using a dynamic product row in an e-mail, you can choose from a fixed number of products or a looped row. A looped row is identified by the word "all." So for example: "All last ordered products". With this product feed, you show all of a customer's last ordered products. Were there 20 products in the last order? Then all 20 will appear in the email.

To prevent infinite products from showing in an email, you can set a limit. You do this as follows:

  • Step 1. Select the dynamic product row.

  • Step 2. Under "Display condition" click on "Change condition". A menu will open which contains the liquid for the dynamic product row.

  • 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.

Did this answer your question?