Skip to content

Commit d10ea87

Browse files
author
Dmytro Voskoboinikov
committed
MAGETWO-71515: Special/lowest price in child of a Configurable Product causes the entire product to show that price
1 parent 3b6e159 commit d10ea87

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

app/code/Magento/Swatches/view/frontend/web/js/swatch-renderer.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,15 @@ define([
932932

933933
_.each($('.' + this.options.classes.attributeOptionsWrapper), function (element) {
934934
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+
}
936944
}
937945
}.bind(this));
938946
},

0 commit comments

Comments
 (0)