Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: customerData.getInitCustomerData is not a function #196

Open
Berman59 opened this issue Jul 9, 2022 · 9 comments
Open

TypeError: customerData.getInitCustomerData is not a function #196

Berman59 opened this issue Jul 9, 2022 · 9 comments

Comments

@Berman59
Copy link

Berman59 commented Jul 9, 2022

... from "Klaviyo_Reclaim/js/customer.min.js". Getting this error on a Magento 2.3.7 test environment. I don't see getInitCustomerData in Magento 2.3.7's customer-data.js, is it because this version is not supported anymore...?

@fidellakis-coolibar
Copy link

Also seeing this error running M2.4.3-p1
Screen Shot 2022-08-03 at 11 44 33 AM

@diyontheweb
Copy link

Confirm also seeing this on 2.3.7

@Jaeto
Copy link

Jaeto commented Sep 15, 2022

For the comments above, can you also supply which version of the Klaviyo extension you are using?

@diyontheweb
Copy link

Hi @Jaeto. We have tried 4.0.5 and 4.0.2 on Magento 2.3.7.

@fidellakis-coolibar
Copy link

We fixed this by ensuring any theme overrides from Magento_Customer module has all methods from extending class.

@guentur
Copy link

guentur commented Sep 19, 2022

Hi. I have created a module for fixing this issue.

https://github.com/guentur/FixKlaviyoUndefinedFunction

@guentur
Copy link

guentur commented Sep 19, 2022

@fidellakis-coolibar Have you found getInitCustomerData() function in your Magento installation? I noticed there is not any modules that add mentioned function.

@fidellakis-coolibar
Copy link

@guentur check vendor/magento/module-customer/view/frontend/web/js/customer-data.js. It's there for me. What version of Magento are you running.

@guentur
Copy link

guentur commented Sep 20, 2022

@fidellakis-coolibar My project uses Magento 2.3.4. I have found there is not required function (getInitCustomerData()) in vendor/magento/module-customer/view/frontend/web/js/customer-data.js. I will change my module to add this function instead of just removing calling this function in Klaviyo module

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants