Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show bulk discounts only if enabled through store settings. #1310

Merged
merged 1 commit into from
Jul 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Draft
- Open correct product page tabs when URL contains a fragment identifier referring to that content [#1304](https://github.com/bigcommerce/cornerstone/pull/1304)
- Display product reviews in tabbed content region of product page. [#1302](https://github.com/bigcommerce/cornerstone/pull/1302)
- Show bulk discounts only if enabled through store settings. [#1310](https://github.com/bigcommerce/cornerstone/pull/1310)

## 2.2.1 (2018-07-10)
- Fix wishlist dropdown background color bleeding out of container [#1283](https://github.com/bigcommerce/cornerstone/pull/1283)
Expand Down
8 changes: 5 additions & 3 deletions templates/components/products/product-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,11 @@ <h2 class="productView-brand"{{#if schema}} itemprop="brand" itemscope itemtype=
{{/if}}
{{/if}}

<div class="productView-info-bulkPricing">
{{> components/products/bulk-discount-rates bulk_discount_rates=product.bulk_discount_rates}}
</div>
{{#if settings.bulk_discount_enabled}}
<div class="productView-info-bulkPricing">
{{> components/products/bulk-discount-rates bulk_discount_rates=product.bulk_discount_rates}}
</div>
{{/if}}

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