File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
app/code/Magento/Swatches/view/base/web/js Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -759,7 +759,7 @@ define([
759
759
760
760
$ ( document ) . trigger ( 'updateMsrpPriceBlock' ,
761
761
[
762
- _ . findKey ( $widget . options . jsonConfig . index , $widget . options . jsonConfig . defaultValues ) ,
762
+ this . _getSelectedOptionPriceIndex ( ) ,
763
763
$widget . options . jsonConfig . optionPrices
764
764
] ) ;
765
765
@@ -770,6 +770,21 @@ define([
770
770
$input . trigger ( 'change' ) ;
771
771
} ,
772
772
773
+ /**
774
+ * Get selected option price index
775
+ *
776
+ * @return {String|undefined }
777
+ * @private
778
+ */
779
+ _getSelectedOptionPriceIndex : function ( ) {
780
+ var allowedProduct = this . _getAllowedProductWithMinPrice ( this . _CalcProducts ( ) ) ;
781
+ if ( _ . isEmpty ( allowedProduct ) ) {
782
+ return undefined ;
783
+ }
784
+
785
+ return allowedProduct ;
786
+ } ,
787
+
773
788
/**
774
789
* Get human readable attribute code (eg. size, color) by it ID from configuration
775
790
*
You can’t perform that action at this time.
0 commit comments