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([
4646 gallerySwitchStrategy : 'replace' ,
4747 tierPriceTemplateSelector : '#tier-prices-template' ,
4848 tierPriceBlockSelector : '[data-role="tier-price-block"]' ,
49- tierPriceTemplate : ''
49+ tierPriceTemplate : '' ,
50+ selectorProduct : '.product-info-main' ,
51+ selectorProductPrice : '[data-role=priceBox]'
5052 } ,
5153
5254 /**
@@ -676,7 +678,9 @@ define([
676678 * @private
677679 */
678680 _displayRegularPriceBlock : function ( optionId ) {
679- var shouldBeShown = true ;
681+ var shouldBeShown = true ,
682+ $priceBox = this . element . parents ( this . options . selectorProduct )
683+ . find ( this . options . selectorProductPrice ) ;
680684
681685 _ . each ( this . options . settings , function ( element ) {
682686 if ( element . value === '' ) {
@@ -696,7 +700,8 @@ define([
696700 $ ( document ) . trigger ( 'updateMsrpPriceBlock' ,
697701 [
698702 optionId ,
699- this . options . spConfig . optionPrices
703+ this . options . spConfig . optionPrices ,
704+ $priceBox
700705 ]
701706 ) ;
702707 } ,
You can’t perform that action at this time.
0 commit comments