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)
-   -   Amember w/ X-cart (https://forum.x-cart.com/showthread.php?t=35727)

tpl 11-26-2007 10:18 PM

Amember w/ X-cart
 
I am using smarty templates in Amember and am able to include php header and footer files. What is the easiest way to just include my header / footer files with xcart and get rid of the x-cart layout ?

balinor 11-27-2007 04:09 AM

Re: Amember w/ X-cart
 
Probably not going to be that easy, as the Smarty variables are most likely different. You'll need to alter the X-Cart header and footer files with your code. Use webmaster mode to determine which template is which, and you can use this as a guide as well:

http://forum.x-cart.com/showthread.php?t=21529

tpl 11-27-2007 02:07 PM

Re: Amember w/ X-cart
 
Ok, I'll take a look, thanks. Is there just a simple command in smarty to include a header.php file from the root folder or something ?

balinor 11-27-2007 06:06 PM

Re: Amember w/ X-cart
 
You don't call php files from the templates, you call templates from the templates. You may want to start by reading this thread, as it sounds like the Smarty you are used to may not be used the same in X-Cart:

http://forum.x-cart.com/showthread.php?t=21529

tpl 11-27-2007 08:00 PM

Re: Amember w/ X-cart
 
Hey Padraic,
Thanks. I have a header/footer that I am using for the whole site. Is their code or a good way to just include these two files ? So that if I update it, it will update the site and the cart?

Thanks.

balinor 11-28-2007 04:04 AM

Re: Amember w/ X-cart
 
You need to edit the header and footer templates in X-Cart as referenced in the thread I posed.

tpl 11-28-2007 01:36 PM

Re: Amember w/ X-cart
 
I was hoping to call a php file like

Quote:

<?php include $_SERVER["DOCUMENT_ROOT"] . '/includes/mainnav.php'; ?>

I was just wondering if there was a call using smarty like {php} or something to be able to call external files.

Thanks !!!


All times are GMT -8. The time now is 10:56 PM.

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