Jump to content

[1.7.5.2] $ is not defined


Recommended Posts

Hello,

I want to resolve the errors of my Prestashop site and in the console I find this error.

image.png.ab973d0520553d3396e95eaa234250b9.png

following the (index): 83 this brings me to this script:

<!-- MODULE PM_AdvancedSearch4 || Presta-Module.com -->
<script type="text/javascript">
var ASPath = '/modules/pm_advancedsearch4/';
var ASSearchUrl = 'http://dev.gironderamagebelcier.com/fr/module/pm_advancedsearch4/advancedsearch4';
var ASParams = {};
var ASHash = {};
var ASPSVersion = '1.7.5.2';
$(document).ready(function() { asInitAsHashChange(); });
</script>

However I don't know how to solve it. Could you help me ?

Link to comment
Share on other sites

Make sure  that the following code is executed in the module, before rendering the output:

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

If it is the module PM_AdvancedSearch4, is the module connected to all hooks? Try reinstalling the module.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...