View Single Post
  #1  
Old 04-29-2004, 06:20 AM
  carlisleglass's Avatar 
carlisleglass carlisleglass is offline
 

eXpert
  
Join Date: Aug 2003
Location: Carlisle, UK
Posts: 316
 

Default 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.
__________________
Darren Kierman
Carlisle Glass (http://www.carlisleglass.co.uk/)
... running X-Cart Gold 4.4.5 [unix]
Reply With Quote