Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi @diego10_01
You can do it like this, don't need to add '{{ }}'
{%- assign collection_handle = 'myVariable' -%}
{% for product in collections[collection_handle].products %}
{{ product.title }}
{% endfor %}