Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Amember w/ X-cart

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-26-2007, 10:18 PM
 
tpl tpl is offline
 

Member
  
Join Date: Nov 2007
Posts: 19
 

Default 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 ?
__________________
Version 4.1.9
Reply With Quote
  #2  
Old 11-27-2007, 04:09 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-27-2007, 02:07 PM
 
tpl tpl is offline
 

Member
  
Join Date: Nov 2007
Posts: 19
 

Default 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 ?
__________________
Version 4.1.9
Reply With Quote
  #4  
Old 11-27-2007, 06:06 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 11-27-2007, 08:00 PM
 
tpl tpl is offline
 

Member
  
Join Date: Nov 2007
Posts: 19
 

Default 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.
__________________
Version 4.1.9
Reply With Quote
  #6  
Old 11-28-2007, 04:04 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Amember w/ X-cart

You need to edit the header and footer templates in X-Cart as referenced in the thread I posed.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 11-28-2007, 01:36 PM
 
tpl tpl is offline
 

Member
  
Join Date: Nov 2007
Posts: 19
 

Default 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 !!!
__________________
Version 4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020