File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
app/code/Magento/Swatches/view/frontend/web/js Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -932,7 +932,15 @@ define([
932
932
933
933
_ . each ( $ ( '.' + this . options . classes . attributeOptionsWrapper ) , function ( element ) {
934
934
if ( $ ( element ) . find ( '.' + this . options . classes . optionClass + '.selected' ) . length === 0 ) {
935
- $ ( this . options . normalPriceLabelSelector ) . show ( ) ;
935
+ if ( $ ( element ) . find ( '.' + this . options . classes . selectClass ) . length > 0 ) {
936
+ _ . each ( $ ( element ) . find ( '.' + this . options . classes . selectClass ) , function ( element ) {
937
+ if ( $ ( element ) . val ( ) === '0' ) {
938
+ $ ( this . options . normalPriceLabelSelector ) . show ( ) ;
939
+ }
940
+ } . bind ( this ) ) ;
941
+ } else {
942
+ $ ( this . options . normalPriceLabelSelector ) . show ( ) ;
943
+ }
936
944
}
937
945
} . bind ( this ) ) ;
938
946
} ,
You can’t perform that action at this time.
0 commit comments