X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   php include statement in languages text file, how? (https://forum.x-cart.com/showthread.php?t=2783)

snorocket 05-20-2003 04:52 AM

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

snorocket 05-20-2003 07:10 AM

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


All times are GMT -8. The time now is 07:59 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.