jakoushirou Posted April 23, 2013 Share Posted April 23, 2013 (edited) Hi, about 1 year ago I made shop by using PrestaShop 1.4.4.1. Everything worked fine - no problems before, but some time ago registration and login has stopped working. In debugging mode in browsers I see error ReferenceError: $ is not defined so it means that there is something wrong with jQuery. I did not change anything in the configuration o and files of shop. What happened? How to fix that? link to registration/login page of shop - shop is made in polish language, but I think that it will be no problem - registration on left, login box on right : http://www.siedemkrukow.pl/sklep/authentication Edited April 23, 2013 by jakoushirou (see edit history) Link to comment Share on other sites More sharing options...
shacker Posted April 23, 2013 Share Posted April 23, 2013 seems like a jquery error check the $().ready(function() in the file tools.js replace to $(document).ready(function() Link to comment Share on other sites More sharing options...
jakoushirou Posted April 23, 2013 Author Share Posted April 23, 2013 (edited) I did it before, didn't help ;/ firefox console shows: ReferenceError: $ is not defined @ http://www.siedemkru...js/tools.js:227 so problem is probably is situated in command mentioned by you, but your suggestion didn't change anything:( line 227: $(document).ready(function() { // Hide all elements with .hideOnSubmit class when parent form is submit $('form').submit(function() { $(this).find('.hideOnSubmit').hide(); }); } Edited April 23, 2013 by jakoushirou (see edit history) Link to comment Share on other sites More sharing options...
shacker Posted April 25, 2013 Share Posted April 25, 2013 isee the problem. the tools.js is defined before jquery in your header.tpl <script type="text/javascript" src="http://www.siedemkrukow.pl/sklep/js/tools.js"></script> you need to put at the bottom of teh other js 2 Link to comment Share on other sites More sharing options...
jakoushirou Posted April 26, 2013 Author Share Posted April 26, 2013 (edited) Thanks - error disappeared, but registration and login still doesn't work. No idea what's going on.. login details are sent to the server and nothing happens.. Edited April 26, 2013 by jakoushirou (see edit history) Link to comment Share on other sites More sharing options...
shacker Posted April 26, 2013 Share Posted April 26, 2013 test with default theme Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now