From d100117a8afbeed13654ed7b7ff4b690d910cb51 Mon Sep 17 00:00:00 2001 From: Vladyslav Shcherbyna <vshcherbyna@ebay.com> Date: Tue, 17 Mar 2015 12:15:28 +0200 Subject: [PATCH] MAGETWO-34866: Wrong price displayed on product page of bundle product --- .../Bundle/view/base/web/js/price-bundle.js | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/app/code/Magento/Bundle/view/base/web/js/price-bundle.js b/app/code/Magento/Bundle/view/base/web/js/price-bundle.js index 369bf0f6a74..399e152769f 100644 --- a/app/code/Magento/Bundle/view/base/web/js/price-bundle.js +++ b/app/code/Magento/Bundle/view/base/web/js/price-bundle.js @@ -117,18 +117,17 @@ define([ */ _applyQtyFix: function applyQtyFix() { var config = this.options.optionConfig; - if (!config.isFixedPrice) { - return; // Fix touches only Bundle with Fixed price. - } - _.each(config.options, function (option) { - _.each(option.selections, function (item) { - if (item.qty && item.qty !== 1) { - _.each(item.prices, function (price) { - price.amount = price.amount / item.qty; - }); - } + if (config.isFixedPrice) { + _.each(config.options, function (option) { + _.each(option.selections, function (item) { + if (item.qty && item.qty !== 1) { + _.each(item.prices, function (price) { + price.amount = price.amount / item.qty; + }); + } + }); }); - }); + } }, /** -- GitLab