Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Dec 2006
    Posts
    33
    Plugin Contributions
    0

    Default Different header for different product categories possible?

    Hi all ^^

    Im having a problem with this... I have full html layout of our webstore ready and our header changes depending on category of products. Is it possible to implement this to zen cart too?

    I tried to just not use any layout in header, footer and just build the whole page with for example "tpl_index_default.php" file. This works fine with just static pages, but when trying to do this in product listinings it becomes troublesome.

    Like you see im new with zen cart ^^;;

    Thanks for advance!

    - Rotkale

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Different header for different product categories possible?

    You can use "per page stylesheets" to accompliish this.

  3. #3
    Join Date
    Dec 2006
    Posts
    33
    Plugin Contributions
    0

    Default Re: Different header for different product categories possible?

    Quote Originally Posted by clydejones View Post
    You can use "per page stylesheets" to accompliish this.
    Thanks for fast reply. This works even when working with images?

  4. #4
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Different header for different product categories possible?

    Yep,

    for instance in the stylesheet.css you use for for your main page you have this declaration:

    #logoWrapper {
    background: url(../images/your_main_image.jpg);
    }

    now create a stylesheet for category one and change it:

    the stylesheet would be named c_1.css and would place this declaration along with any others you might need to style the page.

    #logoWrapper {
    background: url(../images/category_one_image);
    }

  5. #5
    Join Date
    Dec 2006
    Posts
    33
    Plugin Contributions
    0

    Default Re: Different header for different product categories possible?

    Quote Originally Posted by clydejones View Post
    Yep,

    for instance in the stylesheet.css you use for for your main page you have this declaration:

    #logoWrapper {
    background: url(../images/your_main_image.jpg);
    }

    now create a stylesheet for category one and change it:

    the stylesheet would be named c_1.css and would place this declaration along with any others you might need to style the page.

    #logoWrapper {
    background: url(../images/category_one_image);
    }
    Thanks alot! I start trying that ^^

  6. #6
    Join Date
    Dec 2006
    Posts
    33
    Plugin Contributions
    0

    Default Re: Different header for different product categories possible?

    Hmmm,

    I edited stylesheet.css and took #logoWrapper off the line it was earlier:

    #headerWrapper, #contentMainWrapper, #logoWrapper, #cartBoxListWrapper, #ezPageBoxList, #cartBoxListWrapper ul, #ezPageBoxList ul, #mainWrapper, #popupAdditionalImage, #popupImage {
    margin: 0em;
    padding: 0em;
    }

    and made new section like this:

    #logoWrapper {
    background: url("Images/header_covington.jpg");
    }

    I tried that also without the ""
    and put this in middle of html section of the header file:

    <tr>
    <td colspan="2">
    <div id="logoWrapper"></td>
    </tr>

    But my header image wont appear at all ^^;; What am i doing wrong?

  7. #7
    Join Date
    Dec 2006
    Posts
    33
    Plugin Contributions
    0

    Default Re: Different header for different product categories possible?

    Oh i found solution for that problem above by using the full url (http://www.mysite.com/images/etc...)

    Here is another question about header, in our layout we have jscript like this on header:

    <td colspan="2">
    <script LANGUAGE="JavaScript">
    iArray=new Array(
    "Images/met_header1.jpg",
    "Images/met_header2.jpg",
    "Images/met_header3.jpg",
    "Images/met_header4.jpg");
    ri=Math.floor(iArray.length*Math.random());
    ri='<IMG SRC="'+ iArray[ri]+ '" BORDER=0>';
    </script><script>
    document.write(ri);
    </script></td>

    Is there anyway to use this kind of jscript header on product categories? Main site uses just static header like with code like i showed above.

    Thanks in advance~

  8. #8
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Different header for different product categories possible?

    and made new section like this:

    #logoWrapper {
    background: url("../Images/header_covington.jpg");
    }

    You forgot the portion highlighted in red

  9. #9
    Join Date
    Dec 2006
    Posts
    33
    Plugin Contributions
    0

    Default Re: Different header for different product categories possible?

    Quote Originally Posted by clydejones View Post
    and made new section like this:

    #logoWrapper {
    background: url("../Images/header_covington.jpg");
    }

    You forgot the portion highlighted in red
    Yeah i tried that too, but i only got it work with full url. My images folder is in store root.

    About the question i asked above, the jscript random image thing, can i use category #logoWrapper to point to an js file? So the header image would change randomly like in the code i showed above? Or is there any other way to make it work?

    Thanks~

  10. #10
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Different header for different product categories possible?

    Sorry, I don't use the random image contribution so I can't give you any kind of definitive answer on its ins and outs.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 different product info pages for different categories
    By twistedmilas89 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Jul 2012, 09:10 PM
  2. Is it possible to have different images for different languages??
    By alepia in forum Templates, Stylesheets, Page Layout
    Replies: 24
    Last Post: 16 May 2011, 03:25 PM
  3. Different header banners for different categories?
    By crichw in forum General Questions
    Replies: 3
    Last Post: 11 Sep 2010, 01:38 PM
  4. Different product listing layouts for different categories?
    By kbascombe in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Apr 2010, 09:36 AM
  5. I this Possible? different shiping costs for different catagories
    By lestere1 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 7 Jan 2008, 09:32 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR