File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
app/code/Magento/ConfigurableProduct/view/frontend/web/js Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -591,13 +591,16 @@ define([
591
591
_getPrices : function ( ) {
592
592
var prices = { } ,
593
593
elements = _ . toArray ( this . options . settings ) ,
594
- allowedProduct ;
594
+ allowedProduct ,
595
+ selected ,
596
+ config ,
597
+ priceValue ;
595
598
596
599
_ . each ( elements , function ( element ) {
597
600
if ( element . options ) {
598
- var selected = element . options [ element . selectedIndex ] ,
599
- config = selected && selected . config ,
600
- priceValue = this . _calculatePrice ( { } ) ;
601
+ selected = element . options [ element . selectedIndex ] ;
602
+ config = selected && selected . config ;
603
+ priceValue = this . _calculatePrice ( { } ) ;
601
604
602
605
if ( config && config . allowedProducts . length === 1 ) {
603
606
priceValue = this . _calculatePrice ( config ) ;
You can’t perform that action at this time.
0 commit comments