Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Different header for each category

Different header for each category

Locked

Views: 2,645

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
27 Jan 2008, 12:13 PM
#1
mdc avatar

mdc

New Zenner

Join Date:
Jul 2007
Posts:
25
Plugin Contributions:
0

Different header for each category

Hello,

I have question how to use different header for different categories.
example :
if manufacturers_id = 10
go to header 1

else
go to header 2

I just want to know how to implement this case in tpl_header.php if it possibe.

Thank you for your help :)

27 Jan 2008, 12:30 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Different header for each category

If it is manufacturers_id rather than category that you wish to change for, then the best way would be to use a php switch statement.

27 Jan 2008, 12:53 PM
#3
mdc avatar

mdc

New Zenner

Join Date:
Jul 2007
Posts:
25
Plugin Contributions:
0

Re: Different header for each category

kuroi:

If it is manufacturers_id rather than category that you wish to change for, then the best way would be to use a php switch statement.

Thank you for the reply, i will try it now.
I hope this is working :)

27 Jan 2008, 1:48 PM
#4
mdc avatar

mdc

New Zenner

Join Date:
Jul 2007
Posts:
25
Plugin Contributions:
0

Re: Different header for each category

Thank you very much for your advice, it's really work.
Now i have different header on each category :clap:

12 Mar 2008, 5:56 PM
#5
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: Different header for each category

How would you set this up for having a different header for each category versus a different header for each manufacturer like you're doing? :huh:

12 Mar 2008, 6:19 PM
#7
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: Different header for each category

I found that thread earlier... the only problem with changing headers based on stylesheets is that I'm using flash headers... sorry, should have mentioned that before. :frusty:

3 Apr 2008, 5:48 PM
#8
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: Different header for each category

Anybody.. any idea how to make it where it displays a different flash header on each category... ??? :huh:

One flash header on the home.. and a different one on each top level category.. with subcats having the save flash header as their top cat...

like:

Photo Bags
--> Everyday Photo Bag
--> Photo Beach Bag

all having the same flash header.. but different from the other categories or the home page??

3 Apr 2008, 6:15 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Different header for each category

You could adapt the Smart Backgrounds code for this. It already distinguishes based on top cat (among other things), and you could swap out the image lookup code for something that sets up the flash version to be used.

3 Apr 2008, 6:17 PM
#10
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: Different header for each category

Smart Backgrounds code??? Is this in the downloads section?

3 Apr 2008, 6:49 PM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Different header for each category

Link in my sig -----------------------------------------------------------------v

3 Apr 2008, 6:52 PM
#12
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: Different header for each category

well duh :wacko:

There's my blonde moment for the day... lol....

thank-you soooooo much!!!

21 Jul 2010, 5:10 PM
#13
ftdc avatar

ftdc

New Zenner

Join Date:
Oct 2009
Location:
Stockholm, Sweden
Posts:
16
Plugin Contributions:
0

Re: Different header for each category

Seams that this is the only topic comming close to what I wan't to do!

My site have two menus one by category in the sidebar and one in the header fore manufacterers and I want to change the "productListHeading" ore add a image ore div under the "productListHeading" so that I can implement some javascript to have an image ore gif animation and a link with more info to dropdown the history of the brand.

So in short a div or image in the top part of "centerColumn" that onley show up on manufacterer pages with different images to each id.

Anny clue were to start?:frusty: