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

Generating .tpl file to .php file

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-14-2007, 01:24 PM
  More-Japan's Avatar 
More-Japan More-Japan is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 107
 

Question 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.
__________________
Version 5.2.13

http://www.more-japan.com/

Last edited by More-Japan : 02-19-2007 at 11:08 AM. Reason: title edit
Reply With Quote
  #2  
Old 02-19-2007, 10:13 AM
  More-Japan's Avatar 
More-Japan More-Japan is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 107
 

Default Re: Generating .tpl file to .php file

[bump]

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

http://www.more-japan.com/
Reply With Quote
  #3  
Old 02-20-2007, 12:55 PM
  More-Japan's Avatar 
More-Japan More-Japan is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 107
 

Default Re: Generating .tpl file to .php file

[bump]

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

http://www.more-japan.com/
Reply With Quote
  #4  
Old 02-20-2007, 02:18 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default 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)
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #5  
Old 02-20-2007, 04:01 PM
  More-Japan's Avatar 
More-Japan More-Japan is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 107
 

Default 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.
__________________
Version 5.2.13

http://www.more-japan.com/
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 04:38 AM.

   

 
X-Cart forums © 2001-2020