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.
1 parent 9adbb92 commit 36b7271Copy full SHA for 36b7271
app/code/Magento/Catalog/view/frontend/web/js/view/compare-products.js
@@ -31,6 +31,15 @@ define([
31
initialize: function () {
32
this._super();
33
this.compareProducts = customerData.get('compare-products');
34
+ if (window.checkout &&
35
+ window.checkout.websiteId &&
36
+ window.checkout.websiteId !== this.compareProducts().websiteId
37
+ // TODO this code is only needed if websites share same domain (store code in url)
38
+ ) {
39
+ //set count to 0 to prevent "compared products" blocks and count to show with wrong count and items
40
+ this.compareProducts().count = 0;
41
+ customerData.reload(['compare-products'], false);
42
+ }
43
initSidebar();
44
}
45
});
0 commit comments