Skip to content

Commit

Permalink
related products
Browse files Browse the repository at this point in the history
  • Loading branch information
katycobb committed Dec 19, 2024
1 parent 274b345 commit 13df2c2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 34 deletions.
21 changes: 9 additions & 12 deletions locales/en.default.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2835,13 +2835,13 @@
"label": "Heading"
},
"products_to_show": {
"label": "Maximum products to show"
"label": "Products"
},
"columns_desktop": {
"label": "Number of columns on desktop"
"label": "Columns"
},
"paragraph__1": {
"content": "Dynamic recommendations use order and product information to change and improve over time. [Learn more](https://help.shopify.com/themes/development/recommended-products)",
"content": "Related products can be managed in the [Search & Discovery app](https://help.shopify.com/manual/online-store/search-and-discovery/product-recommendations)",
"default": "You may also like"
},
"header__2": {
Expand All @@ -2860,25 +2860,22 @@
}
},
"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-recommendations-section-settings)"
},
"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
39 changes: 17 additions & 22 deletions sections/related-products.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,22 @@
"default": 4,
"label": "t:sections.related-products.settings.columns_desktop.label"
},
{
"type": "select",
"id": "columns_mobile",
"default": "2",
"label": "t:sections.related-products.settings.columns_mobile.label",
"options": [
{
"value": "1",
"label": "t:sections.related-products.settings.columns_mobile.options__1.label"
},
{
"value": "2",
"label": "t:sections.related-products.settings.columns_mobile.options__2.label"
}
]
},
{
"type": "color_scheme",
"id": "color_scheme",
Expand Down Expand Up @@ -189,8 +205,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 @@ -211,26 +226,6 @@
"label": "t:sections.related-products.settings.show_rating.label",
"info": "t:sections.related-products.settings.show_rating.info"
},
{
"type": "header",
"content": "t:sections.related-products.settings.header_mobile.content"
},
{
"type": "select",
"id": "columns_mobile",
"default": "2",
"label": "t:sections.related-products.settings.columns_mobile.label",
"options": [
{
"value": "1",
"label": "t:sections.related-products.settings.columns_mobile.options__1.label"
},
{
"value": "2",
"label": "t:sections.related-products.settings.columns_mobile.options__2.label"
}
]
},
{
"type": "header",
"content": "t:sections.all.padding.section_padding_heading"
Expand Down

0 comments on commit 13df2c2

Please sign in to comment.