Skip to content

Commit 05d78f1

Browse files
committed
Merge branch 'MAGETWO-34866' into MAGETWO-31368
2 parents c0f0792 + d100117 commit 05d78f1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ define([
2222
' +<%- finalPrice.formatted %>' +
2323
'<% } %>',
2424
controlContainer: 'dd', // should be eliminated
25-
priceFormat: {}
25+
priceFormat: {},
26+
isFixedPrice: false
2627
};
2728

2829
$.widget('mage.priceBundle', {
@@ -116,17 +117,17 @@ define([
116117
*/
117118
_applyQtyFix: function applyQtyFix() {
118119
var config = this.options.optionConfig;
119-
_.each(config.options, function (option) {
120-
_.each(option.selections, function (item) {
121-
if (item.priceType === '0') {
120+
if (config.isFixedPrice) {
121+
_.each(config.options, function (option) {
122+
_.each(option.selections, function (item) {
122123
if (item.qty && item.qty !== 1) {
123124
_.each(item.prices, function (price) {
124125
price.amount = price.amount / item.qty;
125126
});
126127
}
127-
}
128+
});
128129
});
129-
});
130+
}
130131
},
131132

132133
/**

0 commit comments

Comments
 (0)