Hi there, i made a new section for my dawn theme, and i want to put it inside grid product collection, using
code for old themes :
{% if collection.title contains "COLLECTION TITLE" and forloop.index == 6 %}
{% section 'image-slider-text' %}
{% endif %}
that’s the way i was using on old themes before 2.0, it show section if collection title contains “name”, and appear after the 6th product on collection grid layot, but now if i use “render” i cannot take section inside another section, so can anyone guide me on how put my new section inside grid product collection?
here is the part of code where i have to add that new code,
{%- for product in collection.products -%}
{% assign lazy_load = false %}
{%- if forloop.index > 2 -%}
{%- assign lazy_load = true -%}
{%- endif -%}
- {% render 'card-product',
card_product: product,
media_aspect_ratio: section.settings.image_ratio,
show_secondary_image: section.settings.show_secondary_image,
show_vendor: section.settings.show_vendor,
show_rating: section.settings.show_rating,
lazy_load: lazy_load,
show_quick_add: section.settings.enable_quick_add,
section_id: section.id
%}
{%- endfor -%}
