我一直在遍历集合数组并尝试获取每个集合的产品,但它仍然无法正常工作??
<div class="products_nav">
{% capture collections_list %}
{% for link in linklists[block.settings.meganav_link].links %}
{{ link.title }}
{% endfor %}
{% endcapture %}
{% assign collections_array = collections_list %}
{% for products in collections_array %}
{% for category in products %}
{% for product in collections[category].products %}
{% include 'product-grid-item' %}
{% endfor %}
{% endfor %}
{% endfor %}
</div>