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)
-   -   Include header (https://forum.x-cart.com/showthread.php?t=16878)

STORed 09-26-2005 11:29 AM

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.

balinor 09-26-2005 12:13 PM

head.tpl

STORed 09-30-2005 08:05 AM

Is that skin1/head.tpl ?

Seems like a whole lot of code there...

balinor 09-30-2005 08:06 AM

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.

STORed 09-30-2005 08:09 AM

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" }

balinor 09-30-2005 08:11 AM

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.

STORed 09-30-2005 08:15 AM

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?

balinor 09-30-2005 08:17 AM

Oh you mean including the php file IN head.tpl...yes, that would work fine. No, you don't need to keep that comment.

STORed 09-30-2005 08:17 AM

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

STORed 09-30-2005 08:18 AM

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


All times are GMT -8. The time now is 12:08 AM.

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