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

Uncaught TypeError: this.el.hoverIntent is not a function #267

Open
ShapesGraphicStudio opened this issue Aug 5, 2021 · 1 comment
Open

Comments

@ShapesGraphicStudio
Copy link

Hi,

Is the demo using latest PrestaShop version?
On my install, I get
Uncaught TypeError: this.el.hoverIntent is not a function
error on the checkout page.

I thought it might be related to the child theme I added, but I'm getting the same error switching to Classic Rocket Version 3.0.4 theme.

Error only goes away when switching to Classic Version 1.0.0 theme.

Any idea on how I could get this fixed please?

@ShapesGraphicStudio
Copy link
Author

ShapesGraphicStudio commented Aug 5, 2021

I don't know if it's the best way to do this but I managed to get rid of this error by overriding theme.js file in my child theme.

I changed:

this.el.hoverIntent({ over: this.toggleClassSubMenu, out: this.toggleClassSubMenu, selector: " > li", timeout: 100 });`

to:

if(prestashop.page.page_name != 'checkout') {
    this.el.hoverIntent({ over: this.toggleClassSubMenu, out: this.toggleClassSubMenu, selector: " > li", timeout: 100 });
}

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

1 participant