Skip to content

Commit

Permalink
Product grid
Browse files Browse the repository at this point in the history
  • Loading branch information
katycobb committed Dec 20, 2024
1 parent 0c4057c commit b851e97
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 43 deletions.
32 changes: 14 additions & 18 deletions locales/en.default.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1815,14 +1815,14 @@
"label": "Products per page"
},
"columns_desktop": {
"label": "Number of columns on desktop"
"label": "Columns"
},
"enable_filtering": {
"label": "Enable filtering",
"info": "Customize filters with the Search & Discovery app. [Learn more](https://help.shopify.com/manual/online-store/search-and-discovery/filters)"
"label": "Filters",
"info": "Customize filters with the [Search & Discovery app](https://help.shopify.com/manual/online-store/search-and-discovery/filters)"
},
"filter_type": {
"label": "Desktop filter layout",
"label": "Filter layout",
"options__1": {
"label": "Horizontal"
},
Expand All @@ -1831,11 +1831,10 @@
},
"options__3": {
"label": "Drawer"
},
"info": "Drawer is the default mobile layout."
}
},
"enable_sorting": {
"label": "Enable sorting"
"label": "Sorting"
},
"image_ratio": {
"label": "Image ratio",
Expand All @@ -1850,13 +1849,13 @@
}
},
"show_secondary_image": {
"label": "Show second image on hover"
"label": "Second image on hover"
},
"show_vendor": {
"label": "Show vendor"
"label": "Vendor"
},
"show_rating": {
"label": "Show product rating",
"label": "Product rating",
"info": "An app is required for product ratings. [Learn more](https://help.shopify.com/manual/online-store/themes/theme-structure/page-types#product-grid-section-settings)"
},
"header__1": {
Expand All @@ -1866,8 +1865,8 @@
"content": "Product card"
},
"enable_tags": {
"label": "Enable filtering",
"info": "Customize filters with the Search & Discovery app. [Learn more](https://help.shopify.com/manual/online-store/search-and-discovery/filters)"
"label": "Filters",
"info": "Customize filters with the [Search & Discovery app](https://help.shopify.com/manual/online-store/search-and-discovery/filters)"
},
"quick_add": {
"label": "Quick add",
Expand All @@ -1877,16 +1876,13 @@
"option_3": "Bulk"
}
},
"header_mobile": {
"content": "Mobile Layout"
},
"columns_mobile": {
"label": "Number of columns on mobile",
"label": "Mobile columns",
"options__1": {
"label": "1 column"
"label": "1"
},
"options__2": {
"label": "2 columns"
"label": "2"
}
}
}
Expand Down
43 changes: 18 additions & 25 deletions sections/main-collection-product-grid.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,22 @@
"default": 4,
"label": "t:sections.main-collection-product-grid.settings.columns_desktop.label"
},
{
"type": "select",
"id": "columns_mobile",
"default": "2",
"label": "t:sections.main-collection-product-grid.settings.columns_mobile.label",
"options": [
{
"value": "1",
"label": "t:sections.main-collection-product-grid.settings.columns_mobile.options__1.label"
},
{
"value": "2",
"label": "t:sections.main-collection-product-grid.settings.columns_mobile.options__2.label"
}
]
},
{
"type": "color_scheme",
"id": "color_scheme",
Expand Down Expand Up @@ -287,8 +303,7 @@
}
],
"default": "default",
"label": "t:sections.all.image_shape.label",
"info": "t:sections.all.image_shape.info"
"label": "t:sections.all.image_shape.label"
},
{
"type": "checkbox",
Expand All @@ -314,7 +329,6 @@
"id": "quick_add",
"default": "none",
"label": "t:sections.main-collection-product-grid.settings.quick_add.label",
"info": "t:sections.main-collection-product-grid.settings.quick_add.info",
"options": [
{
"value": "none",
Expand Down Expand Up @@ -359,35 +373,14 @@
}
],
"default": "horizontal",
"label": "t:sections.main-collection-product-grid.settings.filter_type.label",
"info": "t:sections.main-collection-product-grid.settings.filter_type.info"
"label": "t:sections.main-collection-product-grid.settings.filter_type.label"
},
{
"type": "checkbox",
"id": "enable_sorting",
"default": true,
"label": "t:sections.main-collection-product-grid.settings.enable_sorting.label"
},
{
"type": "header",
"content": "t:sections.main-collection-product-grid.settings.header_mobile.content"
},
{
"type": "select",
"id": "columns_mobile",
"default": "2",
"label": "t:sections.main-collection-product-grid.settings.columns_mobile.label",
"options": [
{
"value": "1",
"label": "t:sections.main-collection-product-grid.settings.columns_mobile.options__1.label"
},
{
"value": "2",
"label": "t:sections.main-collection-product-grid.settings.columns_mobile.options__2.label"
}
]
},
{
"type": "header",
"content": "t:sections.all.padding.section_padding_heading"
Expand Down

0 comments on commit b851e97

Please sign in to comment.