This is a Magento store based on the Acumen theme from Themeforest.
Seemingly out of the blue, jquery stuff is now not working. Acumen has jquery loading through a magento static block and none of that has been touched.
Yesterday I was working on adding the jquery.clearfield.js plugin to add that functionality to our forms. I wasn’t modifying core files. I loaded the clearfield plugin through another static block and added that static block to our contact CMS page.
I was logged in at the time and was getting the logged in values for name/email populating automatically, and at some point I logged out as a customer to test the field values when not logged in.
I was unable to login because of the jquery conflicts. I’ve gone through the code, I can’t seem to find anything that’s changed that would be causing this, and I hadn’t modified any core or theme files.
If you view source/inspect element on any of the pages, you’ll see the prototype and jquery error messages.
Any thoughts/insight would be helpful.
Thanks.
If you want to include the jquery and no conflict code in your local.xml then use:
Cheers!!
Revision 2: You will probably want to edit the page.xml and insert the jquery.js and noConflict in there, as page.xml is loaded before local.xml. Or, you can use local.xml to remove all of the previous Prototype js calls, then re-add them. I found editing page.xml to be easier.
Also, I had trouble getting Action setText to work for the “var jQuery = jQuery.noConflict();”, so I created a separate js file with that line by itself. Not great, but it is loaded right after the main jQuery js file is loaded (and before Prototype)