Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Upgrade your site to Smarty 2.6.2

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #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
  #2  
Old 04-29-2004, 06:35 AM
  carlisleglass's Avatar 
carlisleglass carlisleglass is offline
 

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

Default

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
__________________
Darren Kierman
Carlisle Glass (http://www.carlisleglass.co.uk/)
... running X-Cart Gold 4.4.5 [unix]
Reply With Quote
  #3  
Old 04-29-2004, 06:36 AM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default

What are the advantages of the upgrade... That you have noticed?
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote
  #4  
Old 04-29-2004, 06:38 AM
  carlisleglass's Avatar 
carlisleglass carlisleglass is offline
 

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

Default

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 !!!!
__________________
Darren Kierman
Carlisle Glass (http://www.carlisleglass.co.uk/)
... running X-Cart Gold 4.4.5 [unix]
Reply With Quote
  #5  
Old 04-29-2004, 03:24 PM
 
GM GM is offline
 

eXpert
  
Join Date: Mar 2004
Location: Canada
Posts: 293
 

Default

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!
Reply With Quote
  #6  
Old 04-30-2004, 02:49 AM
  carlisleglass's Avatar 
carlisleglass carlisleglass is offline
 

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

Default

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.
__________________
Darren Kierman
Carlisle Glass (http://www.carlisleglass.co.uk/)
... running X-Cart Gold 4.4.5 [unix]
Reply With Quote
  #7  
Old 05-11-2004, 04:46 PM
 
cmtrade cmtrade is offline
 

Advanced Member
  
Join Date: Dec 2003
Location: Florida
Posts: 30
 

Default I found 1 error with 2.6.2

Webmaster mode doesn't work for me in 2.6.2.

Any ideas?

George
__________________
Dan.
KingWebmaster, LLC
Professional Website Development
http://www.kingwebmaster.com
http://www.autodataentry.com
Reply With Quote
  #8  
Old 05-12-2004, 11:57 AM
 
jeremye jeremye is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Philadelphia, PA
Posts: 158
 

Default 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?
__________________
Jeremy
X-Cart Gold v3.4.14 [Linux/Apache]
Heavily Modded
Reply With Quote
  #9  
Old 05-12-2004, 12:43 PM
 
cmtrade cmtrade is offline
 

Advanced Member
  
Join Date: Dec 2003
Location: Florida
Posts: 30
 

Default 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.
__________________
Dan.
KingWebmaster, LLC
Professional Website Development
http://www.kingwebmaster.com
http://www.autodataentry.com
Reply With Quote
  #10  
Old 05-12-2004, 12:54 PM
 
jeremye jeremye is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Philadelphia, PA
Posts: 158
 

Default

Yep, fortunately I made an entire backup of my xcart directory before upgrading to 2.6.2. It probably is something simple, hopefully.
__________________
Jeremy
X-Cart Gold v3.4.14 [Linux/Apache]
Heavily Modded
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:11 AM.

   

 
X-Cart forums © 2001-2020