Use foreach
for each element in a product recommendation routine.
Example withforeach
All product.titles
up to 4.
{% foreach product in rds.Connection_name.product_recommendation(contact.3) limit 4 %}
{{ product.title }} <br />
{% endforeach %}
Result
T-shirt
Shirt
Trousers
Jeans
Example without applyingforeach
{{ rds.Connection_name.product_recommendation(contact.3)[0].title }}
{{ rds.Connection_name.product_recommendation(contact.3)[0].price }}
Result
T-shirt
59.99