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

php include statement in languages text file, how?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-20-2003, 04:52 AM
 
snorocket snorocket is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 403
 

Default php include statement in languages text file, how?

putting an include statement to a php script in any .tpl file works perfect, example:

{php}
include("http://www.myxcartsite.com/path/to/phpscript.php");
{/php}

but i have a script i need to work in one of the language text files and cannot get it to work the same way, i removed the smarty tags, tried the {literal}{/literal} tags, removed teh tags altogether, i just can't seem to get an include statement to work in one of the text files, what is the trick? how can i get this working, Thanks
Reply With Quote
  #2  
Old 05-20-2003, 07:10 AM
 
snorocket snorocket is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 403
 

Default ooops got the cart before the horse

i just put the include statement in welcome.tpl instead of the actual txt_welcome file and just deleted the contents of the txt_welcome file and it works perfect, ddoooohh
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 02:16 PM.

   

 
X-Cart forums © 2001-2020