【发布时间】:2020-07-22 06:38:54
【问题描述】:
我是 shopify 新手,我正在尝试展示收藏中的产品。
我在部分中创建了一个部分,并使用 shopify 架构来显示此设置。
页面中仅显示标题和说明。
如何在页面中显示所选系列中的所有产品?我整天都在网上搜索答案。
这是我的架构。
希望有人能帮助我,谢谢。
<h3>{{ section.settings.title }}</h3>
<p>{{ section.settings.column_richtext }}</p>
<a href="{{ section.settings.collection}}"></a>
{{ section.settings.collection | products}}
{% schema %}
{
"name": "Collection list 2",
"class": "index-section",
"max_blocks": 3,
"settings": [
{
"type": "text",
"id": "title",
"label": "Heading",
"default": "Collection list 2"
},
{
"type": "richtext",
"id": "column_richtext",
"label": "Short Description",
"default": "<p></p>"
},
{
"id": "collection",
"type": "collection",
"label": "Chose a collection"
},
{
"type": "range",
"id": "grid",
"label": "Collections per row",
"min": 2,
"max": 4,
"step": 1,
"default": 3
}
],
"blocks": [
{
"type": "collection",
"name": "Collection 2",
"settings": [
{
"type": "collection",
"id": "collection2",
"label": "Collection 2"
}
]
}
],
"presets": [
{
"name": "Collection list 2",
"category": "Collection",
"blocks": [
{
"type": "collection"
},
{
"type": "collection"
},
{
"type": "collection"
}
]
}
]
}
{% endschema %}
【问题讨论】:
-
你有结果吗?