Skip to main content

Liquid: exclude free items from dynamic product feeds

In this article you learn how to exclude free items from dynamic product feeds

Francine avatar
Written by Francine
Updated today

Would you like to exclude products that are free from a dynamic product feed? You can do this by editing the liquid of the dynamic feed.

  1. Select the dynamic row in the email

  2. In the right-hand menu under ‘dynamic content’, open the display condition by clicking on ‘edit’

  3. To exclude free products from the feed, you need the following code:

    Before:

    {% if product.price > 0 %}

    After:

    {% endif %}{% endfor %}

    This adjustment will then look like this:

    {% for product in last_ordered_products_collection_array %}{% if product.price > 0 %}

Did this answer your question?