いつもお世話になります。
理解が浅い為、ご指摘をお願い致します。
例えば ホームページ上で「NEWコレクション」「MENSコレクション」など複数のコレクションを混在させて商品を表示させたい場合 下記のような設定を用意して複数のschemaを連続して表示させようとしました。
{% schema %}
{
"blocks":[
{
"type": "first-section",
"name": "Homepage Products1",
"settings": [
{
"type": "text",
"id": "title",
"label": "Heading",
"default":"Trending Products"
},
{
"type": "collection",
"id": "collection",
"label": "Collection"
},
{
"type": "range",
"id": "product_limit",
"label": "Product Limit",
"min": 3,
"max": 10,
"default": 6
}
]
},
{
"type": "second-section",
"name": "Homepage Products2",
"settings": [
{
"type": "text",
"id": "title",
"label": "Heading",
"default":"Mens Products"
},
{
"type": "collection",
"id": "collection",
"label": "Collection"
},
{
"type": "range",
"id": "product_limit",
"label": "Product Limit",
"min": 3,
"max": 10,
"default": 6
}
]
}
]
}
{% endschema %}
カスタマイズ画面は上手く実装されたようなのですが、表示がエラーとなってしまいます。(theme watchでのエラーは無し)
参考サイト上の説明では新たに セクションmuluti_section.liquid や スニペットを作成するように説明されていますが理解できません。
セクション内でのループの作成方法など、多々問題があると思いますが どうか御指南宜しくお願い致します。
参考サイト http://www.codeshopify.com/blog_posts/shopify-sections-with-dynamic-blocks

