Jump to content

Recommended Posts

Hi,

 

Today I installed Prestashop 1.5.4 to my localhost. I am working on integration of my template to Prestashop. I used

 

	<script src="[url="view-source:https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"]https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js[/url]"></script>
<script src="[url="view-source:https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js"]https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js[/url]"></script>

in my html theme. When I look source code of prestashop default theme it shows

<script type="[url=""]text/javascript[/url]" src="[url="view-source:http://localhost/demo154/js/jquery/jquery-1.7.2.min.js"]/demo154/js/jquery/jquery-1.7.2.min.js[/url]"></script>

 

I can add my own js with $js_dir but also I want to delete old version of jquery from code. It is not in header.tpl . I don't understand why Prestashop controls front end developing codes from core files? Anyway please help me to solve this issue.

Link to comment
Share on other sites

Don't remove the old version ... sometimes it is necessary to have got 1.7.2, for example some modules may not work properly with newest jquery.

 

You can of course add new version and use two jquery libraries. Just use them by using "no-conflict" mode

Link to comment
Share on other sites

Thank you for your respond.

 

I am editing all default modules that means I don't worry about old version because all of my modules works ok with newest version.

 

P.S: What is your best solution for using no-conflict mode?

Link to comment
Share on other sites

and what about OPC? fast checkout? ajax search, ajax cart? Sometimes it wont work well right after change jquery to new one ;(

 

If i want to use new jquery, im adding new library and starts noconflict mode for two libraries.

 

for old ribrary i use:

$.noConflict();

 

for new:

jQuery.noConflict();

 

all my scripts, where i use new jquery uses jQuery variable instead the $

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...