Skip to content

Commit

Permalink
Merge pull request #1161 from adamdyche/STRF-3860
Browse files Browse the repository at this point in the history
STRF-3860: Fixed Shop by Price visibility when toggle is disabled on the Category pages.
  • Loading branch information
junedkazi authored Feb 12, 2018
2 parents a6f356b + fcfed3e commit 67305e8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 15 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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_visibility": true,
"brandpage_products_per_page": 12,
"searchpage_products_per_page": 12,
"show_product_quick_view": true,
Expand Down
12 changes: 6 additions & 6 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,12 @@
"force_reload": true,
"id": "show_product_dimensions"
},
{
"type": "checkbox",
"label": "Show "Shop by Price"",
"force_reload": true,
"id": "shop_by_price_visibility"
},
{
"type": "select",
"label": "Number of Related Products",
Expand Down Expand Up @@ -1379,12 +1385,6 @@
}
]
},
{
"type": "checkbox",
"label": "Show "Shop by Price"",
"force_reload": true,
"id": "shop_by_price_visible"
},
{
"type": "select",
"label": "Brand pages",
Expand Down
2 changes: 1 addition & 1 deletion templates/components/category/shop-by-price.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{#if shop_by_price}}
{{#if theme_settings.shop_by_price_visibility}}
<div class="sidebarBlock">
<h5 class="sidebarBlock-heading">{{lang 'category.shop_by_price'}}</h5>
<ul class="navList">
Expand Down
8 changes: 1 addition & 7 deletions templates/pages/category.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,10 @@ <h1 class="page-heading">{{category.name}}</h1>
{{{category.description}}}
{{{snippet 'categories'}}}
<div class="page">
{{#or category.subcategories category.faceted_search_enabled}}
{{#or category.subcategories category.faceted_search_enabled category.shop_by_price}}
<aside class="page-sidebar" id="faceted-search-container">
{{> components/category/sidebar}}
</aside>
{{else}}
{{#if theme_settings.shop_by_price_visible}}
<aside class="page-sidebar" id="faceted-search-container">
{{> components/category/sidebar}}
</aside>
{{/if}}
{{/or}}
<main class="page-content" id="product-listing-container">
{{#if category.products}}
Expand Down

0 comments on commit 67305e8

Please sign in to comment.