Skip to content

Commit

Permalink
fix(storefront): BCTHEME-1785 Remove shop_by_price: true from categor…
Browse files Browse the repository at this point in the history
…y.html (bigcommerce#2431)
  • Loading branch information
bc-yevhenii-buliuk authored Feb 26, 2024
1 parent 8d76428 commit 9cf610d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Draft
- Remove shop_by_price: true from category.html [#2431](https://github.com/bigcommerce/cornerstone/pull/2431)

## 6.13.0 (02-12-2024)
- Fix HTML markup for product listing and below content region [#2426](https://github.com/bigcommerce/cornerstone/pull/2426)
Expand Down
1 change: 0 additions & 1 deletion assets/js/theme/category.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ export default class Category extends CatalogPage {
const requestOptions = {
config: {
category: {
shop_by_price: true,
products: {
limit: productsPerPage,
},
Expand Down
4 changes: 2 additions & 2 deletions templates/components/category/shop-by-price.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{#and theme_settings.shop_by_price_visibility category.shop_by_price}}
{{#if theme_settings.shop_by_price_visibility}}
<div class="sidebarBlock">
<h2 class="sidebarBlock-heading heading-price" data-shop-by-price>{{lang 'category.shop_by_price'}}</h2>

Expand All @@ -9,4 +9,4 @@ <h2 class="sidebarBlock-heading heading-price" data-shop-by-price>{{lang 'catego
<span class="reset-message aria-description--hidden">{{lang 'category.filter_reset_announcement'}}</span>
</div>
</div>
{{/and}}
{{/if}}
11 changes: 4 additions & 7 deletions templates/pages/category.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
category:
shop_by_price: true
products:
limit: {{theme_settings.categorypage_products_per_page}}
---
Expand Down Expand Up @@ -39,12 +38,10 @@ <h1 class="page-heading">{{category.name}}</h1>
<aside class="page-sidebar" id="faceted-search-container">
{{> components/category/sidebar}}
</aside>
{{else if category.shop_by_price}}
{{#if theme_settings.shop_by_price_visibility}}
<aside class="page-sidebar" id="faceted-search-container">
{{> components/category/sidebar}}
</aside>
{{/if}}
{{else if theme_settings.shop_by_price_visibility}}
<aside class="page-sidebar" id="faceted-search-container">
{{> components/category/sidebar}}
</aside>
{{/if}}

<main class="page-content" id="product-listing-container">
Expand Down

0 comments on commit 9cf610d

Please sign in to comment.