We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f0c22cd + 269c215 commit 39cc4c2Copy full SHA for 39cc4c2
app/code/Magento/Swatches/view/frontend/web/js/swatch-renderer.js
@@ -868,13 +868,13 @@ define([
868
}
869
);
870
871
- if (result.oldPrice.amount !== result.finalPrice.amount) {
+ if (typeof result != 'undefined' && result.oldPrice.amount !== result.finalPrice.amount) {
872
$(this.options.slyOldPriceSelector).show();
873
} else {
874
$(this.options.slyOldPriceSelector).hide();
875
876
877
- if (result.tierPrices.length) {
+ if (typeof result != 'undefined' && result.tierPrices.length) {
878
if (this.options.tierPriceTemplate) {
879
tierPriceHtml = mageTemplate(
880
this.options.tierPriceTemplate,
0 commit comments