PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

 

Updating Jquery to 1.3.2

8 replies to this topic
#1
sha

    PrestaShop Newbie

  • Members
  • Pip
  • 7 posts
I would like to use some of jquery's latest features, like jquery ui on my template, but without breaking the existing javascript code. Can I safely update jquery to 1.3.2 ? Or is it better to use both versions at the same time ? (explained here: https://www.adaptavi...cript+libraries )

#2
babyewok

    PrestaShop Apprentice

  • Members
  • PipPip
  • 327 posts
Hi - I'd also like to update the jquery-1.2.6.pack.js to the latest 1.3.2. Have you done it yet? Has it caused problems? Does anyone else know if it would cause a problem if I simply replaced the file with the updated version and changed header.tpl?

#3
tomerg3

    PrestaShop Superstar

  • US Moderators
  • 5753 posts
I think the best thing to do is test it out.
If you have a testing environment, just make the switch there, and see if the site works fine.
If you don't have one, and your site is live, than I strongly suggest you find a proper programmer / webmaster that will set one up for you.
Posted Image
For the latest updates discount coupons and new module information follow us on Twitter , Facebook ,and tips on our Blog
Please do not send general questions via PM, that is what the forum is for...

#4
babyewok

    PrestaShop Apprentice

  • Members
  • PipPip
  • 327 posts
Thanks for the reply - I am the proper web programmer (I'm working on this site for my client) so I will test it out on my local server first!

#5
tomerg3

    PrestaShop Superstar

  • US Moderators
  • 5753 posts
Cool, that's the best way, since you may be using additional modules that may be affected...
Posted Image
For the latest updates discount coupons and new module information follow us on Twitter , Facebook ,and tips on our Blog
Please do not send general questions via PM, that is what the forum is for...

#6
sha

    PrestaShop Newbie

  • Members
  • Pip
  • 7 posts
I tried to do it but didn't succeed. I would advise against it actually, it's probably better to only use features that are backward compatible with the default jquery.

#7
pixemedia

    PrestaShop Newbie

  • Members
  • Pip
  • 10 posts
I'm also trying to update jquery to the latest version (1.3.2), mainly to get rid of that awfull and outdated Thickbox script.

So far it's working good on the public part of my test installation, I have yet to test deeply the admin to see if there are any issues remaining.

- I had to remove the Jquery Interface plugins aswell as the prestashop patch for it. It is used for the transfer effect when you add a product to the shopping cart. I replaced it with JQueryUI's transfert effect (I'm just including effects core and tranfer so it won't overload the page with too muck kb, I also packed effects core).

- I updated idTabs to the latest version (the version used in Prestashop is very old and thus it is outdated.

- Finally I replaced that horrible Thickbox with the latest version of Colorbox.

I'm still testing but so far no problem on the public and admin part of the site. I'm not using any third party modules and my version of Prestashop is 1.2.5.

#8
21846657

    PrestaShop Fanatic

  • Moderators
  • 1139 posts
I am actually against using both (new and old) versions of jQuery. It's not the sense of light-weight. But I am struggling for using the updated jQuery 1.3.2 to have the great effects and unfortunately tried with no luck. I am pretty sure I miss something. Can anyone guide me? I'll be grateful.

[update] If this is needed, you may want to support my feature request. Cheers!

* 欢迎访问PrestaShop官方中文论坛

* 搜索是你的朋友。提问之前请善用搜索引擎和论坛搜索。

* 未获得帮助?——请详述问题,提供PrestaShop版本、运行环境(Web Server/PHP/MySQL)、浏览器类型等必要信息。

* 如果问题解决了,请为你的帖子标题加上[已解决]。谢谢。

#9
pixemedia

    PrestaShop Newbie

  • Members
  • Pip
  • 10 posts
Well, the usage of jquery generally ensure a good compatibility between browsers and allows to create lighter javascript modules with less reduntant code. So at the end I believe if you use jquery for all the scripts on the site you get a lighter and lot more modular code.

Prestashop is not the definition of lightweight anyway (ie: look at smarty and all libs...). :)