Minimal Shopify テーマでは、 collection.liquidで次のようにすることをお勧めします。
<div class="row products">
{% for product in collection.products limit: settings.pagination_limit %}
{% if forloop.index == 4 %}
{% assign image_size = 'large' %}
{% else %}
{% assign image_size = 'small' %}
{% endif %}
{% include 'product-loop' with collection.handle with image_size %}
{% endfor %}
</div>
そして、product-loop.liquid の次の行を変更します。
<img src="{{ product.featured_image | product_img_url: 'large' }}" alt="{{ product.title | escape }}" />
これに:
<img src="{{ product.featured_image | product_img_url: image_size }}" alt="{{ product.title | escape }}" />
コレクション内の 4 番目の製品の画像は大きくなり、他のすべての製品の画像は小さくなります。ただし、4 番目ごとの製品画像を大きくしたい場合は、代わりにこれをcollection.liquidに配置します。
<div class="row products">
{% for product in collection.products limit: settings.pagination_limit %}
{% capture image_size %}{% cycle 'small', 'small', 'small', 'large' %}{% endcapture %}
{% include 'product-loop' with collection.handle with image_size %}
{% endfor %}
</div>