Skip to content

Commit

Permalink
Featured collection reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
katycobb committed Jan 2, 2025
1 parent c159686 commit 5c0d35f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 33 deletions.
16 changes: 9 additions & 7 deletions locales/en.default.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,9 @@
"featured-collection": {
"name": "Featured collection",
"settings": {
"header_text": {
"content": "Text"
},
"title": {
"label": "Heading",
"default": "Featured collection"
Expand All @@ -743,6 +746,9 @@
"label": "Uppercase"
}
},
"header_collection": {
"content": "Collection layout"
},
"collection": {
"label": "Collection"
},
Expand Down Expand Up @@ -800,14 +806,10 @@
"info": "An app is required for ratings. [Learn more](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-collection-show-product-rating)"
},
"enable_quick_buy": {
"label": "Enable quick add button",
"info": "Optimal with popup or drawer cart type."
},
"header_mobile": {
"content": "Mobile Layout"
"label": "Quick add"
},
"columns_mobile": {
"label": "Columns",
"label": "Mobile columns",
"options__1": {
"label": "1"
},
Expand All @@ -816,7 +818,7 @@
}
},
"swipe_on_mobile": {
"label": "Carousel"
"label": "Mobile carousel"
}
},
"presets": {
Expand Down
56 changes: 30 additions & 26 deletions sections/featured-collection.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@
"groups": ["header", "footer"]
},
"settings": [
{
"type": "header",
"content": "t:sections.featured-collection.settings.header_text.content"
},
{
"type": "inline_richtext",
"id": "title",
Expand Down Expand Up @@ -271,6 +275,10 @@
],
"default": "body"
},
{
"type": "header",
"content": "t:sections.featured-collection.settings.header_collection.content"
},
{
"type": "collection",
"id": "collection",
Expand All @@ -294,6 +302,22 @@
"default": 4,
"label": "t:sections.featured-collection.settings.columns_desktop.label"
},
{
"type": "select",
"id": "columns_mobile",
"default": "2",
"label": "t:sections.featured-collection.settings.columns_mobile.label",
"options": [
{
"value": "1",
"label": "t:sections.featured-collection.settings.columns_mobile.options__1.label"
},
{
"value": "2",
"label": "t:sections.featured-collection.settings.columns_mobile.options__2.label"
}
]
},
{
"type": "checkbox",
"id": "full_width",
Expand Down Expand Up @@ -333,6 +357,12 @@
"label": "t:sections.featured-collection.settings.enable_desktop_slider.label",
"default": false
},
{
"type": "checkbox",
"id": "swipe_on_mobile",
"default": false,
"label": "t:sections.featured-collection.settings.swipe_on_mobile.label"
},
{
"type": "color_scheme",
"id": "color_scheme",
Expand Down Expand Up @@ -443,32 +473,6 @@
}
]
},
{
"type": "header",
"content": "t:sections.featured-collection.settings.header_mobile.content"
},
{
"type": "select",
"id": "columns_mobile",
"default": "2",
"label": "t:sections.featured-collection.settings.columns_mobile.label",
"options": [
{
"value": "1",
"label": "t:sections.featured-collection.settings.columns_mobile.options__1.label"
},
{
"value": "2",
"label": "t:sections.featured-collection.settings.columns_mobile.options__2.label"
}
]
},
{
"type": "checkbox",
"id": "swipe_on_mobile",
"default": false,
"label": "t:sections.featured-collection.settings.swipe_on_mobile.label"
},
{
"type": "header",
"content": "t:sections.all.padding.section_padding_heading"
Expand Down

0 comments on commit 5c0d35f

Please sign in to comment.