File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
app/code/Magento/ConfigurableProduct/view/frontend/web/js Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,9 @@ define([
46
46
gallerySwitchStrategy : 'replace' ,
47
47
tierPriceTemplateSelector : '#tier-prices-template' ,
48
48
tierPriceBlockSelector : '[data-role="tier-price-block"]' ,
49
- tierPriceTemplate : ''
49
+ tierPriceTemplate : '' ,
50
+ selectorProduct : '.product-info-main' ,
51
+ selectorProductPrice : '[data-role=priceBox]'
50
52
} ,
51
53
52
54
/**
@@ -676,7 +678,9 @@ define([
676
678
* @private
677
679
*/
678
680
_displayRegularPriceBlock : function ( optionId ) {
679
- var shouldBeShown = true ;
681
+ var shouldBeShown = true ,
682
+ $priceBox = this . element . parents ( this . options . selectorProduct )
683
+ . find ( this . options . selectorProductPrice ) ;
680
684
681
685
_ . each ( this . options . settings , function ( element ) {
682
686
if ( element . value === '' ) {
@@ -696,7 +700,8 @@ define([
696
700
$ ( document ) . trigger ( 'updateMsrpPriceBlock' ,
697
701
[
698
702
optionId ,
699
- this . options . spConfig . optionPrices
703
+ this . options . spConfig . optionPrices ,
704
+ $priceBox
700
705
]
701
706
) ;
702
707
} ,
You can’t perform that action at this time.
0 commit comments