Skip to content

Commit d100117

Browse files
author
Vladyslav Shcherbyna
committed
MAGETWO-34866: Wrong price displayed on product page of bundle product
1 parent 1d2aeac commit d100117

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

app/code/Magento/Bundle/view/base/web/js/price-bundle.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,17 @@ define([
117117
*/
118118
_applyQtyFix: function applyQtyFix() {
119119
var config = this.options.optionConfig;
120-
if (!config.isFixedPrice) {
121-
return; // Fix touches only Bundle with Fixed price.
122-
}
123-
_.each(config.options, function (option) {
124-
_.each(option.selections, function (item) {
125-
if (item.qty && item.qty !== 1) {
126-
_.each(item.prices, function (price) {
127-
price.amount = price.amount / item.qty;
128-
});
129-
}
120+
if (config.isFixedPrice) {
121+
_.each(config.options, function (option) {
122+
_.each(option.selections, function (item) {
123+
if (item.qty && item.qty !== 1) {
124+
_.each(item.prices, function (price) {
125+
price.amount = price.amount / item.qty;
126+
});
127+
}
128+
});
130129
});
131-
});
130+
}
132131
},
133132

134133
/**

0 commit comments

Comments
 (0)