Wondering how we can help? Call us! 1.604.477.7049 / M-F 8am-4pm PST
X-Cart Mods, X-Cart Addons - WebsiteCM
Did you know...
We offer a Community Forum to learn, build, and share with other users of x-cart software?
X-Cart Excellence eZine
Subscribe for proven tips and special discounts!
Cart is empty
X-Cart Services
X-Cart Customization X-Cart Optimization X-Cart Upgrades Non X-Cart Services
X-Cart Mods
Recommended Packages Volume Discount Reseller Program Must Have Mods
Filter Mods By Version
Mods By Purpose
X-Cart Administration X-Cart Packages X-Cart Appearance X-Cart Conversion X-Cart Customers X-Cart Integration X-Cart Marketing X-Cart Navigation X-Cart Search X-Cart SEO X-Cart Shopping Feeds X-Cart Upselling X-Cart Templates
Mods By Firm
WebsiteCM BCSE Cart-Lab Firetank

Update your X-Cart Smarty Version

Update your X-Cart Smarty Version
Category: X-Cart Tutorials
Posted: Nov 20, 2009
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.

  1. Download smarty from: Smarty.net
  2. Unzip the files to your computer.
  3. 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.
  4. Upload the files from Smarty-2.6.26/libs/* to your server folder overwriting files at Smarty-2.6.20/*.
  5. Rename the Smarty-2.6.20 folder on your server to Smarty-2.6.26.
  6. 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.

Related Items

There are no matching available products to list at this time.
Live Help

Site Map