Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

Issue with jQuery on the emc orders's page #36

Open
emcAlexandreD opened this issue Mar 3, 2015 · 2 comments
Open

Issue with jQuery on the emc orders's page #36

emcAlexandreD opened this issue Mar 3, 2015 · 2 comments
Assignees

Comments

@emcAlexandreD
Copy link

Hello,

Our clients reported an issue with the filter on orders we added on the module version 3.1.10, in fact the filter is just not working for them.
When watching the console on this page, we can see theses JavaScript errors :
TypeError: jQuery is undefined
jQuery.migrateMute = true;

Note that we use the function $this->getContext()->controller->addJquery(); to add jQuery on this page.

This problem appear for users using prestashop 1.5 or 1.6 only if they upgraded from the version 1.4 or lower.

@Quetzacoalt91 Quetzacoalt91 self-assigned this Mar 4, 2015
@Quetzacoalt91
Copy link
Contributor

Hi @emcAlexandreD,

I finally made a shop on PrestaShop 1.4, upgraded to 1.5, installed the module at the version 3.1.10 and succeed to reproduce your issue.
But I upgraded the module to the version 3.1.11 and this error is not thrown anymore. I'm pretty sure this is because it now includes the following line:

$this->getContext()->controller->addJquery();

Can you confirm me that the issue still exists on the last version of the module ?

@emcAlexandreD
Copy link
Author

Hello,

I confirm that i do not have the problem anymore on 3.1.11, using addJquery() fix the problem.
I am surprised as it did not fixed the problem when i added it on our client's modules (maybe something with a cache i forgot?).

I will keep an eye to our clients in case there is another problem (i have seen many different errors on jQuery) but it seems that everything is on the last version, thank you for your help.

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

No branches or pull requests

2 participants