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)
-   -   Including site header in head.tpl (https://forum.x-cart.com/showthread.php?t=20954)

superfish 04-05-2006 12:59 PM

Including site header in head.tpl
 
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

Jon 04-05-2006 01:25 PM

Code:

{include_php file="/path/to/file.php"}

superfish 04-05-2006 01:31 PM

Code:

{include_php file="/path/to/file.php"}

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

:oops:

Jon 04-05-2006 01:36 PM

You have to use the server path, not the URL.

superfish 04-05-2006 01:38 PM

Quote:

Originally Posted by Jon
You have to use the server path, not the URL.

Pardon my ignorance, but how would I determine the server path? :)

sds 04-06-2006 01:58 AM

If you have shell access, type 'pwd' at the $ prompt to see the current directory you are in.


All times are GMT -8. The time now is 06:01 AM.

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