Hello,
I would like to console.log all products listed in the recommendation section.
I have added the part but it doesn’t work:
{%- if section.settings.show_product_recommendations -%}
{%- if recommendations.performed -%}
{%- if recommendations.products_count > 0 -%}
{% for product in recommendations.products %}
{% endfor %}
{%- if section.settings.heading != blank -%}
## {{ section.settings.heading | escape }}
{%- endif -%}
{%- for product in recommendations.products -%}
- {% include 'product-card-grid', max_height: 250, product: product, show_vendor: section.settings.show_vendor %}
{%- endfor -%}
{%- endif -%}
{%- else -%}
{%- endif -%}
{%- endif -%}
and any console.log there doesn’t work.
Do you have any idea how to do it?
Thanks