From 732c8c1e36121b8a45dcf7d75b21ca4da4c93aef Mon Sep 17 00:00:00 2001 From: Bruce Alderson Date: Tue, 15 May 2018 16:26:29 -0700 Subject: [PATCH 1/4] Adds config files for discussion. --- config/default-settings.json | 22 +++++ config/options.json | 178 +++++++++++++++++++++++++++++++++++ options.json | 0 3 files changed, 200 insertions(+) create mode 100644 config/default-settings.json create mode 100644 config/options.json delete mode 100644 options.json diff --git a/config/default-settings.json b/config/default-settings.json new file mode 100644 index 0000000..bd70f85 --- /dev/null +++ b/config/default-settings.json @@ -0,0 +1,22 @@ +{ + "storeTitle": "This Shop", + "storeLogo": "@images\/dist\/bones-logo.svg", + "footerLegalText": "\u00a9 2017 LemonStand eCommerce Inc.", + "facebookLink": "", + "twitterLink": "", + "instagramLink": "", + "googleFontURL": "https:\/\/fonts.googleapis.com\/css?family=Bungee|Quicksand", + "stickyHeader": true, + "fillWindow": true, + "enableReviews": true, + "enableRatings": true, + "enableCartCrossSells": true, + "enableCartUpsells": true, + "enableHomeBlogPreview": true, + "enableHomeAbout": true, + "enableHomeHero": true, + "homeHeroImage": "https:\/\/placehold.it\/1200x400", + "autoSubmitOnlyShippingMethod": true, + "categoryListImageEqualizeStrategy": "stretch", + "productListImageEqualizeStrategy": "stretch" +} \ No newline at end of file diff --git a/config/options.json b/config/options.json new file mode 100644 index 0000000..1a9d68d --- /dev/null +++ b/config/options.json @@ -0,0 +1,178 @@ +{ + "fields": { + "storeTitle": { + "type": "text", + "group": "store", + "section": "main", + "name": "Store Name" + }, + "storeLogo": { + "type": "image", + "group": "store", + "section": "main", + "name": "Store Logo" + }, + "footerLegalText": { + "type": "text", + "group": "headfoot", + "section": "main", + "name": "Footer Legal Text" + }, + "facebookLink": { + "type": "text", + "group": "links", + "section": "main", + "name": "Facebook Social Account Link" + }, + "twitterLink": { + "type": "text", + "group": "links", + "section": "main", + "name": "Twitter Social Account Link" + }, + "instagramLink": { + "type": "text", + "group": "links", + "section": "main", + "name": "Instagram Social Account Link" + }, + "googleFontURL": { + "type": "text", + "group": "fonts", + "section": "main", + "name": "Google Font URL" + }, + "stickyHeader": { + "type": "checkbox", + "group": "headfoot", + "section": "main", + "name": "Keep header menu on the page as user scrolls" + }, + "fillWindow": { + "type": "checkbox", + "group": "", + "section": "none", + "name": "Keep footer at bottom of screen on short pages" + }, + "enableReviews": { + "type": "checkbox", + "group": "product", + "section": "product", + "name": "Product Page - Show reviews" + }, + "enableRatings": { + "type": "checkbox", + "group": "product", + "section": "product", + "name": "Product Page - Show ratings" + }, + "enableCartCrossSells": { + "type": "checkbox", + "group": "product", + "section": "product", + "name": "Cart Page - Show cross-sells" + }, + "enableCartUpsells": { + "type": "checkbox", + "group": "product", + "section": "product", + "name": "Cart Page - Show upsells" + }, + "enableHomeBlogPreview": { + "type": "checkbox", + "group": "store", + "section": "main", + "name": "Home Page - Show latest blog posts" + }, + "enableHomeAbout": { + "type": "checkbox", + "group": "store", + "section": "main", + "name": "Home Page- Show widget block home-about" + }, + "enableHomeHero": { + "type": "checkbox", + "group": "store", + "section": "main", + "name": "Home Page - Show hero image with home-hero-content widget block centered within it" + }, + "homeHeroImage": { + "type": "image", + "group": "store", + "section": "main", + "name": "Home Page - Hero Image" + }, + "autoSubmitOnlyShippingMethod": { + "type": "checkbox", + "group": "", + "section": "none", + "name": "Checkout Page - Auto-submit shipping option if there is only one option" + }, + "categoryListImageEqualizeStrategy": { + "type": "dropdown", + "options": { + "stretch": "Stretch", + "top": "Align Top", + "middle": "Align Middle", + "bottom": "Align Bottom" + }, + "group": "categories", + "section": "product", + "name": "Category List - Image Height Equalization Strategy" + }, + "productListImageEqualizeStrategy": { + "type": "dropdown", + "options": { + "stretch": "Stretch", + "top": "Align Top", + "middle": "Align Middle", + "bottom": "Align Bottom" + }, + "group": "summary", + "section": "product", + "name": "Product List - Image Height Equalization Strategy" + } + }, + "groupings": { + "groupings": { + "store": { + "name": "Store settings", + "order": "" + }, + "headfoot": { + "name": "Header and footers", + "order": "" + }, + "links": { + "name": "Links", + "order": "" + }, + "fonts": { + "name": "Fonts", + "order": "" + }, + "product": { + "name": "Products", + "order": "" + }, + "categories": { + "name": "Categories", + "order": "" + }, + "summary": { + "name": "Summary", + "order": "" + } + }, + "sections": { + "main": { + "name": "General settings", + "order": "" + }, + "product": { + "name": "Product settings", + "order": "" + } + } + } +} \ No newline at end of file diff --git a/options.json b/options.json deleted file mode 100644 index e69de29..0000000 From 36ac6af1ea394fd8965799a5052b0d1df703ad27 Mon Sep 17 00:00:00 2001 From: Bruce Alderson Date: Tue, 15 May 2018 16:32:02 -0700 Subject: [PATCH 2/4] Adds some structure. --- config/default-settings.json | 43 +++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/config/default-settings.json b/config/default-settings.json index bd70f85..f889b09 100644 --- a/config/default-settings.json +++ b/config/default-settings.json @@ -1,22 +1,25 @@ { - "storeTitle": "This Shop", - "storeLogo": "@images\/dist\/bones-logo.svg", - "footerLegalText": "\u00a9 2017 LemonStand eCommerce Inc.", - "facebookLink": "", - "twitterLink": "", - "instagramLink": "", - "googleFontURL": "https:\/\/fonts.googleapis.com\/css?family=Bungee|Quicksand", - "stickyHeader": true, - "fillWindow": true, - "enableReviews": true, - "enableRatings": true, - "enableCartCrossSells": true, - "enableCartUpsells": true, - "enableHomeBlogPreview": true, - "enableHomeAbout": true, - "enableHomeHero": true, - "homeHeroImage": "https:\/\/placehold.it\/1200x400", - "autoSubmitOnlyShippingMethod": true, - "categoryListImageEqualizeStrategy": "stretch", - "productListImageEqualizeStrategy": "stretch" + "name": "Default options", + "settings": { + "storeTitle": "This Shop", + "storeLogo": "@images\/dist\/bones-logo.svg", + "footerLegalText": "\u00a9 2017 LemonStand eCommerce Inc.", + "facebookLink": "", + "twitterLink": "", + "instagramLink": "", + "googleFontURL": "https:\/\/fonts.googleapis.com\/css?family=Bungee|Quicksand", + "stickyHeader": true, + "fillWindow": true, + "enableReviews": true, + "enableRatings": true, + "enableCartCrossSells": true, + "enableCartUpsells": true, + "enableHomeBlogPreview": true, + "enableHomeAbout": true, + "enableHomeHero": true, + "homeHeroImage": "https:\/\/placehold.it\/1200x400", + "autoSubmitOnlyShippingMethod": true, + "categoryListImageEqualizeStrategy": "stretch", + "productListImageEqualizeStrategy": "stretch" + } } \ No newline at end of file From 6d885e80bb8001996265bef67ebf6e4a0c80e99a Mon Sep 17 00:00:00 2001 From: Bruce Alderson Date: Wed, 16 May 2018 10:32:38 -0700 Subject: [PATCH 3/4] Combined format. --- config/default-settings.json | 61 ++++++--- config/options.json | 232 ++++++++++------------------------- 2 files changed, 109 insertions(+), 184 deletions(-) diff --git a/config/default-settings.json b/config/default-settings.json index f889b09..7c3c859 100644 --- a/config/default-settings.json +++ b/config/default-settings.json @@ -1,25 +1,46 @@ { "name": "Default options", + "style_code": "default", "settings": { - "storeTitle": "This Shop", - "storeLogo": "@images\/dist\/bones-logo.svg", - "footerLegalText": "\u00a9 2017 LemonStand eCommerce Inc.", - "facebookLink": "", - "twitterLink": "", - "instagramLink": "", - "googleFontURL": "https:\/\/fonts.googleapis.com\/css?family=Bungee|Quicksand", - "stickyHeader": true, - "fillWindow": true, - "enableReviews": true, - "enableRatings": true, - "enableCartCrossSells": true, - "enableCartUpsells": true, - "enableHomeBlogPreview": true, - "enableHomeAbout": true, - "enableHomeHero": true, - "homeHeroImage": "https:\/\/placehold.it\/1200x400", - "autoSubmitOnlyShippingMethod": true, - "categoryListImageEqualizeStrategy": "stretch", - "productListImageEqualizeStrategy": "stretch" + "main": { + "store": { + "storeTitle": "This Shop", + "storeLogo": "@images\/dist\/bones-logo.svg", + "enableHomeBlogPreview": true, + "enableHomeAbout": true, + "enableHomeHero": true, + "homeHeroImage": "https:\/\/placehold.it\/1200x400" + }, + "headfoot": { + "footerLegalText": "\u00a9 2017 LemonStand eCommerce Inc.", + "stickyHeader": true + }, + "links": { + "facebookLink": "", + "twitterLink": "", + "instagramLink": "" + }, + "fonts": { + "googleFontURL": "https:\/\/fonts.googleapis.com\/css?family=Bungee|Quicksand" + } + }, + "none": { + "fillWindow": true, + "autoSubmitOnlyShippingMethod": true + }, + "product": { + "product": { + "enableReviews": true, + "enableRatings": true, + "enableCartCrossSells": true, + "enableCartUpsells": true + }, + "categories": { + "categoryListImageEqualizeStrategy": "stretch" + }, + "summary": { + "productListImageEqualizeStrategy": "stretch" + } + } } } \ No newline at end of file diff --git a/config/options.json b/config/options.json index 1a9d68d..acfd2ff 100644 --- a/config/options.json +++ b/config/options.json @@ -1,177 +1,81 @@ { - "fields": { - "storeTitle": { - "type": "text", - "group": "store", - "section": "main", - "name": "Store Name" - }, - "storeLogo": { - "type": "image", - "group": "store", - "section": "main", - "name": "Store Logo" - }, - "footerLegalText": { - "type": "text", - "group": "headfoot", - "section": "main", - "name": "Footer Legal Text" - }, - "facebookLink": { - "type": "text", - "group": "links", - "section": "main", - "name": "Facebook Social Account Link" - }, - "twitterLink": { - "type": "text", - "group": "links", - "section": "main", - "name": "Twitter Social Account Link" - }, - "instagramLink": { - "type": "text", - "group": "links", - "section": "main", - "name": "Instagram Social Account Link" - }, - "googleFontURL": { - "type": "text", - "group": "fonts", - "section": "main", - "name": "Google Font URL" - }, - "stickyHeader": { - "type": "checkbox", - "group": "headfoot", - "section": "main", - "name": "Keep header menu on the page as user scrolls" - }, - "fillWindow": { - "type": "checkbox", - "group": "", - "section": "none", - "name": "Keep footer at bottom of screen on short pages" - }, - "enableReviews": { - "type": "checkbox", - "group": "product", - "section": "product", - "name": "Product Page - Show reviews" - }, - "enableRatings": { - "type": "checkbox", - "group": "product", - "section": "product", - "name": "Product Page - Show ratings" - }, - "enableCartCrossSells": { - "type": "checkbox", - "group": "product", - "section": "product", - "name": "Cart Page - Show cross-sells" - }, - "enableCartUpsells": { - "type": "checkbox", - "group": "product", - "section": "product", - "name": "Cart Page - Show upsells" - }, - "enableHomeBlogPreview": { - "type": "checkbox", - "group": "store", - "section": "main", - "name": "Home Page - Show latest blog posts" - }, - "enableHomeAbout": { - "type": "checkbox", - "group": "store", - "section": "main", - "name": "Home Page- Show widget block home-about" + "main": { + "store": { + "name": "Store settings", + "order": "", + "field": { + "type": "image", + "name": "Home Page - Hero Image" + } }, - "enableHomeHero": { - "type": "checkbox", - "group": "store", - "section": "main", - "name": "Home Page - Show hero image with home-hero-content widget block centered within it" + "headfoot": { + "name": "Header and footers", + "order": "", + "field": { + "type": "checkbox", + "name": "Keep header menu on the page as user scrolls" + } }, - "homeHeroImage": { - "type": "image", - "group": "store", - "section": "main", - "name": "Home Page - Hero Image" + "links": { + "name": "Links", + "order": "", + "field": { + "type": "text", + "name": "Instagram Social Account Link" + } }, - "autoSubmitOnlyShippingMethod": { + "fonts": { + "name": "Fonts", + "order": "", + "field": { + "type": "text", + "name": "Google Font URL" + } + } + }, + "none": { + "name": null, + "order": "", + "field": { "type": "checkbox", - "group": "", - "section": "none", "name": "Checkout Page - Auto-submit shipping option if there is only one option" - }, - "categoryListImageEqualizeStrategy": { - "type": "dropdown", - "options": { - "stretch": "Stretch", - "top": "Align Top", - "middle": "Align Middle", - "bottom": "Align Bottom" - }, - "group": "categories", - "section": "product", - "name": "Category List - Image Height Equalization Strategy" - }, - "productListImageEqualizeStrategy": { - "type": "dropdown", - "options": { - "stretch": "Stretch", - "top": "Align Top", - "middle": "Align Middle", - "bottom": "Align Bottom" - }, - "group": "summary", - "section": "product", - "name": "Product List - Image Height Equalization Strategy" } }, - "groupings": { - "groupings": { - "store": { - "name": "Store settings", - "order": "" - }, - "headfoot": { - "name": "Header and footers", - "order": "" - }, - "links": { - "name": "Links", - "order": "" - }, - "fonts": { - "name": "Fonts", - "order": "" - }, - "product": { - "name": "Products", - "order": "" - }, - "categories": { - "name": "Categories", - "order": "" - }, - "summary": { - "name": "Summary", - "order": "" + "product": { + "product": { + "name": "Products", + "order": "", + "field": { + "type": "checkbox", + "name": "Cart Page - Show upsells" + } + }, + "categories": { + "name": "Categories", + "order": "", + "field": { + "type": "dropdown", + "options": { + "stretch": "Stretch", + "top": "Align Top", + "middle": "Align Middle", + "bottom": "Align Bottom" + }, + "name": "Category List - Image Height Equalization Strategy" } }, - "sections": { - "main": { - "name": "General settings", - "order": "" - }, - "product": { - "name": "Product settings", - "order": "" + "summary": { + "name": "Summary", + "order": "", + "field": { + "type": "dropdown", + "options": { + "stretch": "Stretch", + "top": "Align Top", + "middle": "Align Middle", + "bottom": "Align Bottom" + }, + "name": "Product List - Image Height Equalization Strategy" } } } From 6e5253de349dc744a309e0810acd7b06bff72208 Mon Sep 17 00:00:00 2001 From: Bruce Alderson Date: Wed, 16 May 2018 11:23:01 -0700 Subject: [PATCH 4/4] Adds missing name field. --- config/options.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/options.json b/config/options.json index acfd2ff..04606c5 100644 --- a/config/options.json +++ b/config/options.json @@ -1,5 +1,6 @@ { "main": { + "name": "General settings", "store": { "name": "Store settings", "order": "", @@ -42,6 +43,7 @@ } }, "product": { + "name": "Product settings", "product": { "name": "Products", "order": "",