Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [customer-data]

Use this tag on the questions about the customer-data.js library used in the Magento 2

0
votes
1answer
18 views

Show product catalog based on Customer

how can I show catalog products based on customer custom field ? I've done di.xml I've done this but is doesn't filter . This is what I have in ListProduct.php (used in di.xml) protected function ...
1
vote
1answer
39 views

Magento2 : Getting error in console customer-data.js:86

I am using Magento2.1.9 getting this error in our console i am trying to different solutions but not fix it.please if any one know reply me
2
votes
1answer
65 views

Unable de reload customer data section

I discover that some native route are listed in the section xml file without any section : <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
0
votes
1answer
47 views

How to render HTML entities in the wishlist sidebar

I have added the © symbol to product names in Magento 2. These all appear fine on the category and product pages, however when I add an item to my wishlist the product name appears with the text &...
0
votes
2answers
109 views

Unable to call function in ajax success in magento2

I have found below error: > Uncaught TypeError: Cannot read property 'set' of undefined. Code: <script> require(['jquery','Magento_Customer/js/customer-data','domReady!'], function ($, ...
0
votes
1answer
133 views

In magento 2 How to get all customer data without using object manager? [closed]

In customer module need to show all customer data whatever I want?
0
votes
1answer
204 views

Magento 2 :What is the different between invalidate and reload if they both update the sections?

If some section should be updated then customerData.invalidate(sections) if you sure, that you really need update some section you can always do something like this: customerData.reload(['cart'], ...
0
votes
0answers
302 views

Magento2: customerData works different on Product Page?

I am working a lot lately with the client side interactions and mage-cache-storage using the customerData. When the user clicks some button, I send information to the customerData and store it there ...
0
votes
0answers
442 views

Magento 2 - Reload page after customer data section

I'm trying to realize the following behaviour (f.e. on the catalog page): If a logged in user opens the catalog page of my shop I want to change the style of the "add to wishlist" heart icon if the ...
0
votes
0answers
25 views

Adding to Customer.php (CustomerData)

I am trying to add to the scope options when calling the data-binds for customer details, ie; <span id="customer-full-name" data-bind="text: customer().fullname"></span> so I travel over ...
3
votes
3answers
538 views

Get wishlist item's array

I made an add to wishlist with ajax module and I want to indicate if the product is already in wishlist without breaking the full page cache. I know the wishlist object is in customer-data but I can't ...
1
vote
2answers
2k views

customer-data.js error: …/section/load/?sections=instant-purchase&… JS error

I keep getting a JS error in my site, it's an ajax get request to http://domain.com/customer/section/load/?sections=instant-purchase&update_section_id=false&_=1517327157790 which results in a "...
1
vote
2answers
3k views

How to force reloading of a customer data section?

I'm using CustomerData library to display private content (Magento docs). I see that in etc/frontend/sections.xml I can configure which requests would result in requesting the data from the server ...
5
votes
4answers
8k views

Magento 2 customer-data.js:90:23 [object Object]

I'm using Magento 2.2 with Porto theme and getting an [object Object] javascript error at customer-data.js line 90 in the console after logging into the store and refreshing the page or switching to ...