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)
-   -   Generating .tpl file to .php file (https://forum.x-cart.com/showthread.php?t=28870)

More-Japan 02-14-2007 01:24 PM

Creating a new .tpl file.
 
Im in the middle of making a new template based off the current template that i already have.
so i've made the tpl files and everything but then realized i can't get the tpl files to generate over to php files.
I've saved my templates under the skin1 root directory as these files;
SSR.tpl
SSR_menu.tpl
SSR_head.tpl
i've layed out everything so it looks like the same template as my current site so when i 'preview' it, it shows up fine.
but when i generate..theres no php file to view for the public.
my site is www.more-japan.com and im trying to make the SSR.tpl to www.more-japan.com/SSR.php.

wondering if anybody can give me directions on how to do this.
is there certain coding that i need to input into the tpl files?
or..is there a config file that i need to edit inorder to make the files into php?

all input is welcomed. thank you.

More-Japan 02-19-2007 10:13 AM

Re: Generating .tpl file to .php file
 
[bump]

can someone please help me out with this? greatly appreciated..

More-Japan 02-20-2007 12:55 PM

Re: Generating .tpl file to .php file
 
[bump]

..theres gotta be somebody that knows how to do this. lol.

inebriate 02-20-2007 02:18 PM

Re: Generating .tpl file to .php file
 
well you dont generate tpl files to a php file

in the php file you tell it to display the tpl file

if you took a look at your home.php file you will see 2 lines that look like:
Code:

$smarty->assign("location", $location);

func_display("customer/home.tpl",$smarty);

the first line assigns the location
while the second assigns the tpl to be displayed (I believe you can only display one main tpl, so the header and what not will have to be "included" in the main tpl)

More-Japan 02-20-2007 04:01 PM

Re: Generating .tpl file to .php file
 
yes! thank u! =D

that was the exact thing i was looking for..just didnt know where to find it.
thanks so much.


All times are GMT -8. The time now is 04:20 AM.

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