私の問題の解決策を探しています。私はShopify
のユニークなページに商品のコレクションを引っ張って、.liquid
を使用しています。私は正しいコレクションを引き出して行に表示することができましたが、価格やタイトル、詳細などの余分な情報は表示されません。ここで私のページにコレクションを引っ張ってきたコードです。助言がありますか?Shopifyのカスタムページにコレクションをプルしましたが、画像以外の情報は表示されません
すべての情報が役立ちます!これを私のページに集中させる問題もあります。
{% assign collection = collections.aaron-wallis %}
{% assign products = collections.aaron-wallis.products %}
{% capture new_row %}
<div class="product_row">
{% endcapture %}
{% for product in products limit: limit %}
<a href="{{ product.url | within: collection }}" title="{{ product.featured_image.alt | escape }}">
<img {% if settings.align_height %}
style="height:{{ settings.collection_height }}px"
{% endif %}
src="{{ product.featured_image|product_img_url: 'large' }}"
alt="{{ product.featured_image.alt | escape }}" />
</a>
{% endfor %}
</div>
どのように定義されていますか? '{%assign products = collection.products%}'を試してください。 – HymnZ