File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
app/code/Magento/Bundle/view/base/web/js Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ define([
22
22
' +<%- finalPrice.formatted %>' +
23
23
'<% } %>' ,
24
24
controlContainer : 'dd' , // should be eliminated
25
- priceFormat : { }
25
+ priceFormat : { } ,
26
+ isFixedPrice : false
26
27
} ;
27
28
28
29
$ . widget ( 'mage.priceBundle' , {
@@ -116,17 +117,17 @@ define([
116
117
*/
117
118
_applyQtyFix : function applyQtyFix ( ) {
118
119
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 ) {
122
123
if ( item . qty && item . qty !== 1 ) {
123
124
_ . each ( item . prices , function ( price ) {
124
125
price . amount = price . amount / item . qty ;
125
126
} ) ;
126
127
}
127
- }
128
+ } ) ;
128
129
} ) ;
129
- } ) ;
130
+ }
130
131
} ,
131
132
132
133
/**
You can’t perform that action at this time.
0 commit comments