From 1d2aeacd4ea921ff32eaa09fdcde649cb5e57afc Mon Sep 17 00:00:00 2001
From: Vladyslav Shcherbyna <vshcherbyna@ebay.com>
Date: Tue, 17 Mar 2015 11:58:02 +0200
Subject: [PATCH] MAGETWO-34866: Wrong price displayed on product page of
 bundle product

---
 .../Bundle/view/base/web/js/price-bundle.js      | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 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 3ad6f45b08d..369bf0f6a74 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
@@ -22,7 +22,8 @@ define([
         ' +<%- finalPrice.formatted %>' +
         '<% } %>',
         controlContainer: 'dd', // should be eliminated
-        priceFormat: {}
+        priceFormat: {},
+        isFixedPrice: false
     };
 
     $.widget('mage.priceBundle', {
@@ -116,14 +117,15 @@ 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.priceType === '0') {
-                        if (item.qty && item.qty !== 1) {
-                            _.each(item.prices, function (price) {
-                                price.amount = price.amount / item.qty;
-                            });
-                        }
+                    if (item.qty && item.qty !== 1) {
+                        _.each(item.prices, function (price) {
+                            price.amount = price.amount / item.qty;
+                        });
                     }
                 });
             });
-- 
GitLab