llavemani Posted October 26, 2014 Share Posted October 26, 2014 Good night!I do not know why but, we have not changed anything on our web, but since yesterday the JS files stopped working.We used the default theme 1.6.0.6 and the top horizontal menu stopped work, you can not change the page in a list in the Administration menu, icon ajax running always appear moving, some payment option dont work, etc ...Trying to fix it we have updated the page to 1.6.0.9 but the problem still happening. We also changed the permissions of all the folders and files to 755.We have disabled some modules but it still happening.I dont know what else to try. Our website is www.llavemania.com Any help?! Thank yu so much Link to comment Share on other sites More sharing options...
Krystian Podemski Posted October 27, 2014 Share Posted October 27, 2014 It's because PayPal express checkout. Javascript from PayPal is placed right after styles, before jQuery is loaded and this cause error. Link to comment Share on other sites More sharing options...
El Patron Posted October 27, 2014 Share Posted October 27, 2014 this is what I see, you are not loading .js file that are not 'hard coded' you have theme designed for 1.6.0.6. themes/yourtheme/header.tpl does not have code to load javascript top. with upgrade 1.6.0.7+, the default is to load javascript top 1.6.0.6 was forced all bottom, so theme developers removed load .js from your themes header.tpl hence you are not loading any module/theme .js files. ------- go to back office-->advanced parms-->performance find the setting that moves all javascript to the bottom. set load all javascript load bottom. save then re-test. 1 Link to comment Share on other sites More sharing options...
Krystian Podemski Posted October 27, 2014 Share Posted October 27, 2014 Or add this: {if isset($js_defer) && !$js_defer && isset($js_files) && isset($js_def)} {$js_def} {foreach from=$js_files item=js_uri} <script type="text/javascript" src="{$js_uri|escape:'html':'UTF-8'}"></script> {/foreach} {/if} after this: {if isset($css_files)} {foreach from=$css_files key=css_uri item=media} <link rel="stylesheet" href="{$css_uri|escape:'html':'UTF-8'}" type="text/css" media="{$media|escape:'html':'UTF-8'}" /> {/foreach} {/if} 2 Link to comment Share on other sites More sharing options...
llavemani Posted October 27, 2014 Author Share Posted October 27, 2014 Thank you so much for all, i've tried first to change this: go to back office-->advanced parms-->performance find the setting that moves all javascript to the bottom. set load all javascript load bottom. save Because it was easeir for me and it fix the problem. I'm sure the other option too. Thank you so much!!! Link to comment Share on other sites More sharing options...
Tom Boltman Posted January 22, 2021 Share Posted January 22, 2021 On 10/27/2014 at 10:17 AM, llavemani said: go to back office-->advanced parms-->performance find the setting that moves all javascript to the bottom. set load all javascript load bottom. save Where can I that option? Link to comment Share on other sites More sharing options...
Prestachamps Posted January 22, 2021 Share Posted January 22, 2021 Prestashop .1.7 doesn't have that option anymore. It has been a feature on Prestashop 1.6. Cheers, Leo Link to comment Share on other sites More sharing options...
Tom Boltman Posted January 22, 2021 Share Posted January 22, 2021 Then what shall I do on prestashop 1.7? 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