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

Executing PHP scripts in Smarty Templates

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-18-2006, 01:30 AM
 
upgrade upgrade is offline
 

Member
  
Join Date: Feb 2005
Posts: 13
 

Default Executing PHP scripts in Smarty Templates

Hello,

Is there a way to execute PHP Scripts inside a Smarty Template page? I want to manipulate the way the part code in the order_info.tpl is displayed, by using PHP's string functions.
__________________
Regards,

Michael Acs
Upgradeable.com.au
[X-Cart 4.0.12]
Reply With Quote
  #2  
Old 02-18-2006, 05:42 AM
 
geckoday geckoday is offline
 

X-Wizard
  
Join Date: Aug 2005
Posts: 1,073
 

Default

Several of the PHP string functions are implemented in Smarty as modifiers. Also, all PHP functions can be executed in a Smarty template as modifiers so even the ones that aren't specifically included in Smarty can be used. See:

http://smarty.php.net/manual/en/language.modifiers.php
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]

UGG Boots and other fine sheepskin products
http://www.snowriver.com
Reply With Quote
  #3  
Old 02-18-2006, 03:42 PM
 
upgrade upgrade is offline
 

Member
  
Join Date: Feb 2005
Posts: 13
 

Default

Thanks for the link!
__________________
Regards,

Michael Acs
Upgradeable.com.au
[X-Cart 4.0.12]
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 11:21 AM.

   

 
X-Cart forums © 2001-2020