Skip to content

Commit 0fdb025

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-56998' into BUGS-2.1
2 parents b9c9449 + eb2ec29 commit 0fdb025

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
@@ -191,7 +191,10 @@ define([
191191
mediaGalleryInitial: [{}],
192192

193193
//
194-
onlyMainImg: false
194+
onlyMainImg: false,
195+
196+
// sly-old-price block selector
197+
slyOldPriceSelector: '.sly-old-price'
195198
},
196199

197200
/**
@@ -688,6 +691,11 @@ define([
688691
}
689692
);
690693

694+
if (result.oldPrice.amount !== result.finalPrice.amount) {
695+
$(this.options.slyOldPriceSelector).show();
696+
} else {
697+
$(this.options.slyOldPriceSelector).hide();
698+
}
691699
},
692700

693701
/**

0 commit comments

Comments
 (0)