Promokit Posted April 3, 2012 Share Posted April 3, 2012 Will jquery up to date in 1.5 version? Link to comment Share on other sites More sharing options...
Dev On Web Posted April 4, 2012 Share Posted April 4, 2012 Hey, In /js/jquery, it's the jQuery 1.4.4 release... not the last. You can update this manualy! Link to comment Share on other sites More sharing options...
Promokit Posted April 4, 2012 Author Share Posted April 4, 2012 Yes, but I'm not sure all will works Link to comment Share on other sites More sharing options...
mexique1 Posted April 4, 2012 Share Posted April 4, 2012 I have the latest jQuery, everything works. Well everything I'm using... Link to comment Share on other sites More sharing options...
Dev On Web Posted April 4, 2012 Share Posted April 4, 2012 Yeah, it's only a JS file Link to comment Share on other sites More sharing options...
Promokit Posted April 4, 2012 Author Share Posted April 4, 2012 Of course, if you have a working shop, you can replace jquery by newer version, but when you coding a theme you need this feature as native. Link to comment Share on other sites More sharing options...
Dev On Web Posted April 4, 2012 Share Posted April 4, 2012 Sure, I understand that. Try to post an improvement in the forge maybe? Link to comment Share on other sites More sharing options...
mexique1 Posted April 4, 2012 Share Posted April 4, 2012 The problem is that jQuery and co. are NOT inside the theme, but are sort of part of PrestaShop's core (correct me if I'm wrong, but jQuery is added by the FrontController) They shouldn't be there. JavaScript is part of the presentation layer and should be package inside the theme. Unfortunately, there are lots of thing in PS that are coupled to jQuery somehow... Link to comment Share on other sites More sharing options...
strapper Posted April 4, 2012 Share Posted April 4, 2012 @mexique1 : in product.tpl, there are some things related to the calculation of one product's price, in the related javascript inside the template too, and in the related classes/controllers too... guess what ? you should update the template at nearly each version of prestashop 1.4 of course it means more work for template designers... i really hope that it will end with prestashop 1.5 and that all attributes & products prices will be sent from the controller and not subcalculated in the theme's javascript... Link to comment Share on other sites More sharing options...
mexique1 Posted April 6, 2012 Share Posted April 6, 2012 strapper > Funny, I said the exact same thing about product.tpl http://www.prestashop.com/forums/index.php?/topic/1379[spam-filter]remove-smarty/page__view__findpost__p__671760 Unfortunately, not much has changed... Link to comment Share on other sites More sharing options...
Ciprian.Popescu Posted April 8, 2012 Share Posted April 8, 2012 They should be like in WordPress. WordPress comes packaged with a jQuery version, usually the latest, and you can override it in the theme. Or call it on demand inside the theme. So, there's one jQuery for the backend, and one for the frontend, depending on your theme's requirements. Link to comment Share on other sites More sharing options...
Thomas Didierjean Posted April 10, 2012 Share Posted April 10, 2012 Hi, We are working on it and we will be making a decision about upgrading jQuery after we are confident that compatibility issues in modules and themes are limited. Thomas Link to comment Share on other sites More sharing options...
strapper Posted April 10, 2012 Share Posted April 10, 2012 @Thomas Didierjean : will the prestashop team make a decision for prestashop 1.6 too about getting all the product logic into the controllers, and not in the template for the product, too, please ? Link to comment Share on other sites More sharing options...
Thomas Didierjean Posted April 10, 2012 Share Posted April 10, 2012 Yes, it should have been done for 1.5 but unfortunately we didn't have enough time. It will definitly be for next version. Link to comment Share on other sites More sharing options...
Promokit Posted April 20, 2012 Author Share Posted April 20, 2012 Today jQuery was updated to 1.7.2 as I can see in SVN version Link to comment Share on other sites More sharing options...
OC2PS Posted April 20, 2012 Share Posted April 20, 2012 I say don't package jQuery at all. Use Google's libraries http://forge.prestashop.com/browse/PSFV-101 Link to comment Share on other sites More sharing options...
strapper Posted April 21, 2012 Share Posted April 21, 2012 yeah... cdn rules Link to comment Share on other sites More sharing options...
Prestadget Posted April 24, 2012 Share Posted April 24, 2012 Use Google library will not improve your page speed or your web site loading time ! 1. Prestashop merge all file together 2. Don't add a new domain to load in your HTML page (only 1 domain will decrease performance actually since JS & CSS are loaded using HTTP keep alive method) Upgrade jQuery only if you need new features, else its stupid since the file is bigger ! Link to comment Share on other sites More sharing options...
Dev On Web Posted April 24, 2012 Share Posted April 24, 2012 The last SVN version had the new jQuery lib now (1.7.2) ! But it's bigger... I agree. Link to comment Share on other sites More sharing options...
strapper Posted April 29, 2012 Share Posted April 29, 2012 please see the point 3 on the page : http://www.prestashop.com/en/top-tips "Loading files from different domains will help decrease server load and deliver files quicker on the customer's browser. Make a copy of the compressed CSS/JavaScript files and images of your site and upload to another domain. Once the new domain with files is completed, enter the domain into the designated "Media Server" field in the back office." thus, a cdn could still be very effective, for images moreover. Link to comment Share on other sites More sharing options...
Recommended Posts