Category: X-Cart Tutorials
Posted: Feb 2, 2010
Synopsis: Article explains how to upgrade your smarty version when running x-cart.
X-Cart comes packaged with the Smarty Template system, but once installed it's also important to keep Smarty updated for security and performance improvements.
Follow these steps to update your Smarty version for x-cart. Note the instructions presume that you are upgrading from Smarty 2.6.20 to 2.6.26 so if your versions differ just substitute them into the instructions accordingly.
- Download smarty from: Smarty.net
- Unzip the files to your computer.
- If you've customized any of your smarty settings (i.e. setting compile_check and/or force_compile to false) then also modify Smarty-2.6.26/Smarty.class.php as desired.
- Upload the files from Smarty-2.6.26/libs/* to your server folder overwriting files at Smarty-2.6.20/*.
- Rename the Smarty-2.6.20 folder on your server to Smarty-2.6.26.
- Open smarty.php located in your root x-cart folder (the same folder as home.php and cart.php).
FIND:
define('SMARTY_DIR', $xcart_dir.DIRECTORY_SEPARATOR."Smarty-2.6.20".DIRECTORY_SEPARATOR);
CHANGE TO:
define('SMARTY_DIR', $xcart_dir.DIRECTORY_SEPARATOR."Smarty-2.6.26".DIRECTORY_SEPARATOR);
This will complete your x-cart smarty upgrade.