Skip to content

Commit 487d485

Browse files
ENGCOM-6288: Fix JS error on cart configure page for configurable products #25606
- Merge Pull Request #25606 from ihor-sviziev/magento2:fix-js-error-on-cart-configure-page - Merged commits: 1. d26f8da
2 parents 9fb7790 + d26f8da commit 487d485

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)