| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Including site header in head.tpl | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I have a PHP file that sits outside the cart's folder and is used for the header of the rest of our site. Is there a way to include that throughout our cart i.e. standard PHP include? I can't determine the method to include these files.
Thanks, Matt
__________________
X-Cart Pro v4.0.16 X-AOM X-RMA X-Special Offers X-Gift Registry |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Code:
|
|||||||||
#3
|
|||||||
|
|||||||
![]() Code:
The result: Warning: Smarty error: http://mydomain.com/shared/menu_header.php is not readable in /home/arc/public_html/shop/Smarty-2.6.9/Smarty.class.php on line 1088 ![]()
__________________
X-Cart Pro v4.0.16 X-AOM X-RMA X-Special Offers X-Gift Registry |
|||||||
#4
|
|||||||||
|
|||||||||
![]() You have to use the server path, not the URL.
|
|||||||||
#5
|
|||||||
|
|||||||
![]() Quote:
![]()
__________________
X-Cart Pro v4.0.16 X-AOM X-RMA X-Special Offers X-Gift Registry |
|||||||
#6
|
|||||||
|
|||||||
![]() If you have shell access, type 'pwd' at the $ prompt to see the current directory you are in.
__________________
X-Cart 4.4.2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|