| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
include a php file in tpl (smarty) | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() hi folks.. using a php page i can include anything i want..
I want to include a php file into the smarty template: header.tpl normally i'd do <?php include(path); ?> I tried that inside the header.tpl and got a blank image..err no image. how can i include this php file in the header? garz ////////////// xcart 4.xx linux/php |
|||||||
#2
|
|||||||
|
|||||||
![]() This should work:
{php} include(path); {/php}
__________________
Emerson █ Total Server Solutions LLC- Quality X-Cart Hosting █ Recommended X-Cart Hosting Provider - US and UK servers █ Does your host backup your site? We do EVERY HOUR!!! █ Shared Hosting | Managed Cloud | Dedicated Servers |
|||||||
#3
|
|||||||
|
|||||||
![]() I am having this problem to. I have a php file located in my store root directory that I would like to insert into the detailed images normal location on the product.tpl.
I created a detail_image.tpl in a dir. located in the skin1/modules dir. but no matter what I put in to include the php file, I get errors. Any ideas? Thanks, Mike
__________________
4.1.9 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() I think that you will need to you the complete path to the file from root (like the path that is displayed in "Images Locations"), not just the path from "home" for your website.
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|