File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
app/code/Magento/Swatches/view/frontend/web/js Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -268,8 +268,11 @@ define([
268
268
// tier prise selectors start
269
269
tierPriceTemplateSelector : '#tier-prices-template' ,
270
270
tierPriceBlockSelector : '[data-role="tier-price-block"]' ,
271
- tierPriceTemplate : ''
271
+ tierPriceTemplate : '' ,
272
272
// tier prise selectors end
273
+
274
+ // A price label selector
275
+ normalPriceLabelSelector : '.normal-price .price-label'
273
276
} ,
274
277
275
278
/**
@@ -924,6 +927,14 @@ define([
924
927
} else {
925
928
$ ( this . options . tierPriceBlockSelector ) . hide ( ) ;
926
929
}
930
+
931
+ $ ( this . options . normalPriceLabelSelector ) . hide ( ) ;
932
+
933
+ _ . each ( $ ( '.' + this . options . classes . attributeOptionsWrapper ) , function ( element ) {
934
+ if ( $ ( element ) . find ( '.' + this . options . classes . optionClass + '.selected' ) . length === 0 ) {
935
+ $ ( this . options . normalPriceLabelSelector ) . show ( ) ;
936
+ }
937
+ } . bind ( this ) ) ;
927
938
} ,
928
939
929
940
/**
You can’t perform that action at this time.
0 commit comments