From 49e01e66232db80d56fd3f3110fba0e23e510065 Mon Sep 17 00:00:00 2001 From: Eugene Kasimov Date: Tue, 17 Oct 2023 12:45:08 -0700 Subject: [PATCH] Update section settings --- locales/en.default.schema.json | 14 ++++++++++++++ sections/quick-order-form.liquid | 24 ++++++++++++------------ 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/locales/en.default.schema.json b/locales/en.default.schema.json index 4065f8981f9..54dbe3257d1 100644 --- a/locales/en.default.schema.json +++ b/locales/en.default.schema.json @@ -2742,6 +2742,20 @@ "name": "Quick order list" } }, + "quick-order-form": { + "name": "Quick order form", + "settings": { + "show_variant_image": { + "label": "Show variant images" + }, + "show_sku": { + "label": "Show SKUs" + } + }, + "presets": { + "name": "Quick order list" + } + }, "related-products": { "name": "Related products", "settings": { diff --git a/sections/quick-order-form.liquid b/sections/quick-order-form.liquid index 1fa123f0300..d1609e7a326 100644 --- a/sections/quick-order-form.liquid +++ b/sections/quick-order-form.liquid @@ -194,28 +194,24 @@ {% schema %} { - "name": "Quick Order form", + "name": "t:sections.quick-order-form.name", "settings": [ - { - "type": "collection", - "id": "collection", - "label": "Select collection" - }, - { - "type": "header", - "content": "t:sections.all.padding.section_padding_heading" - }, { "type": "checkbox", "id": "show_image", "default": false, - "label": "t:sections.quick-order-list.settings.show_image.label" + "label": "t:sections.quick-order-form.settings.show_variant_image.label" }, { "type": "checkbox", "id": "show_sku", "default": false, - "label": "t:sections.quick-order-list.settings.show_sku.label" + "label": "t:sections.quick-order-form.settings.show_sku.label" + }, + { + "type": "collection", + "id": "collection", + "label": "Select collection" }, { "type": "color_scheme", @@ -223,6 +219,10 @@ "label": "t:sections.all.colors.label", "default": "background-1" }, + { + "type": "header", + "content": "t:sections.all.padding.section_padding_heading" + }, { "type": "range", "id": "padding_top",