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); 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. |
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 |
What are the advantages of the upgrade... That you have noticed?
|
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 !!!! |
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!
|
Quote:
You are right, my mistake (oops!!!) ... I've updated my post accordly. |
I found 1 error with 2.6.2
Webmaster mode doesn't work for me in 2.6.2.
Any ideas? George |
Re: I found 1 error with 2.6.2
Quote:
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? |
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. |
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.