Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 6c7a031

Browse files
author
Sergii Kovalenko
committed
MAGETWO-70877: Console bug when add product to compare list
1 parent 495d0c4 commit 6c7a031

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

app/code/Magento/Catalog/view/frontend/layout/default.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
<item name="syncUrl" xsi:type="url" path="catalog/product/frontend_action_synchronize"/>
2323
</item>
2424
</item>
25+
<item name="product_data_storage" xsi:type="array">
26+
<item name="updateRequestConfig" xsi:type="array">
27+
<item name="url" xsi:type="serviceUrl" path="/products-render-info"/>
28+
</item>
29+
</item>
2530
</argument>
2631
</arguments>
2732
</block>

app/code/Magento/Catalog/view/frontend/web/js/storage-manager.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@ define([
6666
'product_data_storage': {
6767
namespace: 'product_data_storage',
6868
className: 'DataStorage',
69-
allowToSendRequest: 0
69+
allowToSendRequest: 0,
70+
updateRequestConfig: {
71+
url: '',
72+
method: 'GET',
73+
dataType: 'json'
74+
}
7075
}
7176
},
7277
requestConfig: {

0 commit comments

Comments
 (0)