From d954f30bcc08fe96d7a5f244fad64e195e0aad37 Mon Sep 17 00:00:00 2001 From: Adam Dyche Date: Thu, 1 Feb 2018 18:14:29 +1100 Subject: [PATCH 1/2] STRF-3860: Fixed Shop by Price visibility when toggle is disabled in theme editor --- CHANGELOG.md | 1 + config.json | 2 +- schema.json | 2 +- templates/components/category/shop-by-price.html | 2 +- templates/pages/category.html | 8 +------- 5 files changed, 5 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fad14654ec..9645de7426 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## Draft +- Fix "Shop by Price" toggle in theme editor to hide Shop by Price when faceted search is not enabled. [#1161](https://github.com/bigcommerce/cornerstone/pull/1161) ## 1.13.0 (2018-02-05) - Fix logo not loading on order confirmation page [#1159](https://github.com/bigcommerce/cornerstone/pull/1159) diff --git a/config.json b/config.json index 5ed740577a..3b2f85898c 100644 --- a/config.json +++ b/config.json @@ -55,7 +55,7 @@ "productpage_related_products_count": 10, "productpage_similar_by_views_count": 10, "categorypage_products_per_page": 12, - "shop_by_price_visible": true, + "shop_by_price": true, "brandpage_products_per_page": 12, "searchpage_products_per_page": 12, "show_product_quick_view": true, diff --git a/schema.json b/schema.json index 60f4fc419c..e5f05d2d46 100644 --- a/schema.json +++ b/schema.json @@ -1383,7 +1383,7 @@ "type": "checkbox", "label": "Show "Shop by Price"", "force_reload": true, - "id": "shop_by_price_visible" + "id": "shop_by_price" }, { "type": "select", diff --git a/templates/components/category/shop-by-price.html b/templates/components/category/shop-by-price.html index 05313f4fdb..75dbb70ec8 100644 --- a/templates/components/category/shop-by-price.html +++ b/templates/components/category/shop-by-price.html @@ -1,4 +1,4 @@ -{{#if shop_by_price}} +{{#if theme_settings.shop_by_price}}
{{lang 'category.shop_by_price'}}