Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jul 2007
    Posts
    25
    Plugin Contributions
    0

    Default 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 :)

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default 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.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Jul 2007
    Posts
    25
    Plugin Contributions
    0

    Default Re: Different header for each category

    Quote Originally Posted by kuroi View Post
    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 :)

  4. #4
    Join Date
    Jul 2007
    Posts
    25
    Plugin Contributions
    0

    Default 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

  5. #5
    Join Date
    Dec 2007
    Posts
    141
    Plugin Contributions
    0

    Default 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?

  6. #6
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Different header for each category

    http://www.zen-cart.com/forum/showthread.php?t=41402
    Thread above should help, especially Post Number 10

  7. #7
    Join Date
    Dec 2007
    Posts
    141
    Plugin Contributions
    0

    Default 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.

  8. #8
    Join Date
    Dec 2007
    Posts
    141
    Plugin Contributions
    0

    Default Re: Different header for each category

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

    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??

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.

  10. #10
    Join Date
    Dec 2007
    Posts
    141
    Plugin Contributions
    0

    Default Re: Different header for each category

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

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 Different Logo for each category?
    By texasemt in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 2 Jul 2016, 09:32 AM
  2. Different EZ-pages for each category
    By immortalitea in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Nov 2008, 09:03 PM
  3. Different category box for each category
    By ebloger in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Apr 2008, 08:16 AM
  4. Different header for each page
    By lavergara in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 Aug 2007, 03:32 AM
  5. Different CSS for each Category
    By vulbus in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 May 2006, 02:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg