Skip to content

Commit f3910d4

Browse files
authored
Merge pull request #1310 from Ubersmake/STRF-4969
Show bulk discounts only if enabled through store settings.
2 parents bdff995 + 47a3d6b commit f3910d4

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Draft
44
- Open correct product page tabs when URL contains a fragment identifier referring to that content [#1304](https://github.com/bigcommerce/cornerstone/pull/1304)
55
- Display product reviews in tabbed content region of product page. [#1302](https://github.com/bigcommerce/cornerstone/pull/1302)
6+
- Show bulk discounts only if enabled through store settings. [#1310](https://github.com/bigcommerce/cornerstone/pull/1310)
67

78
## 2.2.1 (2018-07-10)
89
- Fix wishlist dropdown background color bleeding out of container [#1283](https://github.com/bigcommerce/cornerstone/pull/1283)

templates/components/products/product-view.html

+5-3
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,11 @@ <h2 class="productView-brand"{{#if schema}} itemprop="brand" itemscope itemtype=
137137
{{/if}}
138138
{{/if}}
139139

140-
<div class="productView-info-bulkPricing">
141-
{{> components/products/bulk-discount-rates bulk_discount_rates=product.bulk_discount_rates}}
142-
</div>
140+
{{#if settings.bulk_discount_enabled}}
141+
<div class="productView-info-bulkPricing">
142+
{{> components/products/bulk-discount-rates bulk_discount_rates=product.bulk_discount_rates}}
143+
</div>
144+
{{/if}}
143145

144146
{{#each product.custom_fields}}
145147
<dt class="productView-info-name">{{name}}:</dt>

0 commit comments

Comments
 (0)