Skip to content

Commit d26f8da

Browse files
committed
Fix JS error on cart configure page for configurable products
1 parent 8112a38 commit d26f8da

File tree

1 file changed

+5
-2
lines changed
  • app/code/Magento/Msrp/view/base/web/js

1 file changed

+5
-2
lines changed

app/code/Magento/Msrp/view/base/web/js/msrp.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,11 @@ define([
352352
$(this.options.mapInfoLinks).show();
353353

354354
if (useDefaultPrice || !this.wasOpened) {
355-
this.$popup.find(this.options.msrpLabelId).html(options.msrpPrice);
356-
this.$popup.find(this.options.priceLabelId).html(options.realPrice);
355+
if (this.$popup) {
356+
this.$popup.find(this.options.msrpLabelId).html(options.msrpPrice);
357+
this.$popup.find(this.options.priceLabelId).html(options.realPrice);
358+
}
359+
357360
$(this.options.displayPriceElement).html(msrpPrice);
358361
this.wasOpened = true;
359362
}

0 commit comments

Comments
 (0)