Skip to content

Commit

Permalink
Don't clear bulk pricing rules when feature is disabled. (#1173)
Browse files Browse the repository at this point in the history
Previous PR was removing catalog bulk pricing rules if the bulk pricing experiment was off for a store. We should make sure not to delete information in that case. This change reduces dependency on the deployment of another feature.
  • Loading branch information
bookernath authored and mjschock committed Feb 28, 2018
1 parent ccc18d2 commit 5d074dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions assets/js/theme/common/product-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,11 +395,10 @@ export default class ProductDetails {
viewModel.$addToCart.prop('disabled', false);
viewModel.$increments.prop('disabled', false);
}

// If Bulk Pricing rendered HTML is available
if (data.bulk_discount_rates && content) {
viewModel.$bulkPricing.html(content);
} else {
} else if (typeof (data.bulk_discount_rates) !== 'undefined') {
viewModel.$bulkPricing.html('');
}
}
Expand Down

0 comments on commit 5d074dc

Please sign in to comment.