X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Upgrade your site to Smarty 2.6.2 (https://forum.x-cart.com/showthread.php?t=7367)

carlisleglass 04-29-2004 06:20 AM

Upgrade your site to Smarty 2.6.2
 
My xcart site is currently running Smarty 2.6.2 and heres how to do it :

Step 1
download the source of Smarty 2.6.2 from http://smarty.php.net/distributions/Smarty-2.6.2.tar.gz

Step 2
uncompress the file and upload the contents of the libs directory to a directory called Smarty-2.6.2 (in xcart/)

Step 3
You need to copy 3 files from xcart/Smarty-2.5.0/plugins to xcart/Smarty-2.6.2/plugins. The files in question are: modifier.abs_value.php, modifier.value_sign.php & modifier.formatprice.php

Step 4
You need to change the following line in xcart/smarty.php from
Code:

define('SMARTY_DIR', $xcart_dir.DIRECTORY_SEPARATOR."Smarty-2.5.0".DIRECTORY_SEPARATOR);
to
Code:

define('SMARTY_DIR', $xcart_dir.DIRECTORY_SEPARATOR."Smarty-2.6.2".DIRECTORY_SEPARATOR);

Step 5
Load your site (and it will work) hopefully .... STEP 3 IS IMPORTANT !!! It appears these plugins are custom made and are not in the original smarty distribution.

carlisleglass 04-29-2004 06:35 AM

The above procedure is to make sure you have a backup of the old Smarty 2.5.0 if anything goes wrong ... if you want you can do it this way(thou you will not keep a backup of 2.5.0 on the server):

Do Step 1 as normal

Step 2 - uncompress the files and upload the contents of the lib directory to the directory called Smarty-2.5.0 (in xcart/), confirming you wish to overwrite all files.

Skip Steps 3 and 4

Do Step 5 as normal

I recommend you do it the first way, but wanted to show you that you didn't have to create another smarty directory if you didn't want to

DogByteMan 04-29-2004 06:36 AM

What are the advantages of the upgrade... That you have noticed?

carlisleglass 04-29-2004 06:38 AM

The pages seem to be loading a lot quicker !

Heres a changelog from smarty:
http://smarty.php.net/misc/NEWS

Remember you are looking at the changes since 2.5.0 !!!!

GM 04-29-2004 03:24 PM

Well my friend.. I think you're right, the pages do seem to load a little quicker! However, you have to place the Smarty 2.6.2 folder in the xcart directory (not the customer directory) Works fine so far, thanks to your brave adventure!

carlisleglass 04-30-2004 02:49 AM

Quote:

Originally Posted by GM
Well my friend.. I think you're right, the pages do seem to load a little quicker! However, you have to place the Smarty 2.6.2 folder in the xcart directory (not the customer directory) Works fine so far, thanks to your brave adventure!


You are right, my mistake (oops!!!) ... I've updated my post accordly.

cmtrade 05-11-2004 04:46 PM

I found 1 error with 2.6.2
 
Webmaster mode doesn't work for me in 2.6.2.

Any ideas?

George

jeremye 05-12-2004 11:57 AM

Re: I found 1 error with 2.6.2
 
Quote:

Originally Posted by cmtrade
Webmaster mode doesn't work for me in 2.6.2.


You got that right George. I have the same problem with Webmaster Mode breaking after upgrading to Smarty 2.6.2.

Anyone have any thoughts?

cmtrade 05-12-2004 12:43 PM

smarty 2.6.2
 
Its probably something simple.
If anyone figures it out, pleasde post the solution. The speed of the 2.6.2 was nice while it lasted.

jeremye 05-12-2004 12:54 PM

Yep, fortunately I made an entire backup of my xcart directory before upgrading to 2.6.2. It probably is something simple, hopefully.


All times are GMT -8. The time now is 12:46 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.