Section
Product grid
6 个模板实例,10 个 section 配置,1 类 block。
真实模板变体
Schema
{
"name": "Product grid",
"settings": [
{
"type": "checkbox",
"id": "full_width",
"default": false,
"label": "Make section full width"
},
{
"type": "range",
"id": "products_per_page",
"min": 2,
"max": 48,
"step": 1,
"label": "Number of products",
"default": 12
},
{
"type": "range",
"id": "columns_desktop",
"min": 2,
"max": 5,
"step": 1,
"label": "Number of columns on desktop",
"default": 3
},
{
"type": "select",
"id": "pagination_type",
"options": [
{
"value": "paginated",
"label": "Paginated"
},
{
"value": "loadmore",
"label": "Click to load"
},
{
"value": "infinite",
"label": "Infinite"
}
],
"default": "paginated",
"label": "Pagination",
"info": "Choose how additional pages of products are navigated."
},
{
"type": "header",
"content": "Filtering and sorting"
},
{
"type": "checkbox",
"id": "enable_filtering",
"default": true,
"label": "Enable filtering",
"info": "Customize [filters](/admin/menus)"
},
{
"type": "checkbox",
"id": "enable_sorting",
"default": true,
"label": "Enable sorting"
},
{
"type": "checkbox",
"id": "show_counts",
"default": true,
"label": "Show filter values count"
},
{
"type": "checkbox",
"id": "filter_color_swatches",
"default": true,
"label": "Show color swatches"
},
{
"type": "select",
"id": "facets_desktop",
"options": [
{
"value": "sidebar",
"label": "Sidebar"
},
{
"value": "drawer",
"label": "Drawer"
}
],
"default": "sidebar",
"label": "Desktop position",
"info": "Position of filters on desktop"
}
],
"blocks": [
{
"type": "promotion",
"name": "Promotion",
"settings": [
{
"type": "collection",
"id": "promotion_collection",
"label": "Collection",
"info": "Show on specific collection only"
},
{
"type": "range",
"id": "promotion_position",
"min": 1,
"max": 24,
"step": 1,
"label": "Show in position",
"default": 1
},
{
"type": "select",
"id": "promotion_width",
"options": [
{
"value": "1",
"label": "1 column"
},
{
"value": "2",
"label": "2 columns"
}
],
"default": "1",
"label": "Width"
},
{
"type": "image_picker",
"id": "image",
"label": "Image"
},
{
"type": "text",
"id": "title",
"default": "Promotion",
"label": "Heading"
},
{
"type": "textarea",
"id": "text",
"default": "Advertise a promotion or a sale",
"label": "Description"
},
{
"id": "link_label",
"type": "text",
"label": "Button label",
"default": "Explore",
"info": "Leave the label blank to hide the button."
},
{
"id": "link",
"type": "url",
"label": "Button link"
},
{
"type": "checkbox",
"id": "use_text_button",
"label": "Use text button",
"default": false
},
{
"id": "block_link",
"type": "url",
"label": "Link",
"info": "This will allow you to set a link to the promotion"
},
{
"type": "header",
"content": "Colors"
},
{
"type": "color",
"id": "overlay_color",
"label": "Overlay",
"default": "#000000"
},
{
"type": "range",
"id": "overlay_opacity",
"min": 0,
"max": 100,
"step": 1,
"unit": "%",
"label": "Overlay opacity",
"default": 70
}
]
}
],
"presets": []
}