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

Include header

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-26-2005, 11:29 AM
  STORed's Avatar 
STORed STORed is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 69
 

Default Include header

Can I include the same header on my store pages that i use throughout the site? If yes, how? I was ble to find file called rectangle_top_cust.tpl that sort of serves as the header. I'd like to have the same header though.
__________________
Thanks.

X-Cart Gold 4.0.14 on Linux
Reply With Quote
  #2  
Old 09-26-2005, 12:13 PM
 
balinor balinor is offline
 

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

Default

head.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 09-30-2005, 08:05 AM
  STORed's Avatar 
STORed STORed is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 69
 

Default

Is that skin1/head.tpl ?

Seems like a whole lot of code there...
__________________
Thanks.

X-Cart Gold 4.0.14 on Linux
Reply With Quote
  #4  
Old 09-30-2005, 08:06 AM
 
balinor balinor is offline
 

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

Default

Yes. And yes, there is a lot up there by default (tabs, search bar, language selection, etc). Depending on your design, you can nuke quite a bit of that.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 09-30-2005, 08:09 AM
  STORed's Avatar 
STORed STORed is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 69
 

Default

Well, all i want is to include my header that I use throughout.

Can I just go nuclear and replace all with something like:

Code:
{ include file="/includes/myheader.php" }
__________________
Thanks.

X-Cart Gold 4.0.14 on Linux
Reply With Quote
  #6  
Old 09-30-2005, 08:11 AM
 
balinor balinor is offline
 

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

Default

Well I wouldn't include a php file no. Use a .tpl file. If you want to get rid of everything in head.tpl, go for it and replace it with whatever content you want. There isn't anything up there that is essential to the operation of the store...you can include the search, language selection and printable link elsewhere. You can always restore it from skin1_orignal later if you want.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 09-30-2005, 08:15 AM
  STORed's Avatar 
STORed STORed is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 69
 

Default

Why won't you recommend including .php file. I just put the way I wanted it and it works just fine.

I used to have store (with Miva) that I had to keep separate header code. I hated it - always forgot to update it thoughout. I just tweaked my header and make it SSl compatible.

Do I need to keep this:

{* $Id: head.tpl,v 1.40.2.3 2004/11/19 06:40:15 max Exp $ *}

Is it sort of like a comment?
__________________
Thanks.

X-Cart Gold 4.0.14 on Linux
Reply With Quote
  #8  
Old 09-30-2005, 08:17 AM
 
balinor balinor is offline
 

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

Default

Oh you mean including the php file IN head.tpl...yes, that would work fine. No, you don't need to keep that comment.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 09-30-2005, 08:17 AM
  STORed's Avatar 
STORed STORed is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 69
 

Default

I've got search integrated into my header. I do not believe into searching store appart from my site
__________________
Thanks.

X-Cart Gold 4.0.14 on Linux
Reply With Quote
  #10  
Old 09-30-2005, 08:18 AM
  STORed's Avatar 
STORed STORed is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 69
 

Default

Oh, yes, I keep .tpl files, just call in my php.
__________________
Thanks.

X-Cart Gold 4.0.14 on Linux
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:44 PM.

   

 
X-Cart forums © 2001-2020