Custom template

General ShopSite user discussion

Custom template

Postby Yesmin » Sun Nov 11, 2007 12:00 am

Can we use php code in our custom template pages? We try to use php code(like echo,print etc.) in our custom template page but it doesn't work.
Yesmin
 
Posts: 8
Joined: Thu Oct 25, 2007 12:01 am

Postby robm » Sun Nov 11, 2007 9:03 am

Sure, you can use php code in your custom templates. Just make sure your page filenames end in .php, or ask your hosting provider to setup your account to parse .htm and .html files for php commands. Then your published ShopSite pages will work with php code in them.
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut

Postby priscila » Sun Nov 11, 2007 10:05 pm

Yes, it's working fine if I add any page using custom template. But if I add any php code in custom template header portion it doesn't work. Can't I use any php code in creating a custom template ?
priscila
 
Posts: 29
Joined: Mon Oct 22, 2007 10:59 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 124 guests

cron