Jump to content

Change references order to the scripts in head tag


Recommended Posts

I'm using Prestashop version 1.6.1.17. I installed a module called Super Abandoned Cart and I have the following error in Prestashop back office:

Uncaught ReferenceError: $ is not defined

I found out that I should put the references to the jquery scripts first.

I don't know how to do that in Prestashop.

These are the references generated automatically after installing some modules (PrestaQnA and Super Abandoned Cart):

<script type="text/javascript" src="/modules/prestaqna/js/dh42.js"></script>
<script type="text/javascript" src="/modules/superabandonedcart/views/js/js.js"></script>
<script type="text/javascript" src="/js/jquery/jquery-1.11.0.min.js"></script>
Edited by David (see edit history)
Link to comment
Share on other sites

  • 4 months later...

I have the same problem in front office, jquery is loaded after some modules requiring it and it creates problems. Same prestashop version 1.6.1.17.

 

I tried to have a look at modules positions in backoffice but seems like the jquery include is not called by a module.

Is there anyone that can help us???

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...