Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2006
    Posts
    45
    Plugin Contributions
    0

    Default Selective header display?

    Is it possible to set the header NOT to display when in manufacturer view?

    Or to vary header?

    Thanks
    Alma

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

    Default Re: Selective header display?

    There would be small amounts of programming to be done, but they would be fairly elementary.

    At the top of the tpl_main_page.php file is an explanation of how flags can be set to suppress different parts of the page when certain pages are called. Although these comments and examples tend to focus on the side columns, they are equally applicable to the header (and footer).

    Similarly, at the top of the code in the same file there is a line that determines the header template to be used. If you built additional header templates, you could insert the conditions that choose which to use for a particular page in there.
    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
    Jun 2006
    Posts
    45
    Plugin Contributions
    0

    Default Re: Selective header display?

    sent you an email to request help!

  4. #4
    Join Date
    Jun 2006
    Posts
    45
    Plugin Contributions
    0

    Default Re: Selective header display?

    I found this.

    require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>
    How would I set the condition to manufacture ID?

    Thanks

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

    Default Re: Selective header display?

    Having looked at you site Alma, here's what I'd recommend ...

    Provided you are using an up-to-date version of Zen Cart you can specify different stylesheets for each manufacturer. I suggest that you move your header image from your tpl_header.php to your stylesheet as a background image to the header.

    You can then define manufacturer-specific stylesheets that contain no more than the header image for that manufacturer, each of whom would need to design a single header which should be easy for them given the nature of your products.

    Each stylesheet would be named in the form m_??.css and be palced in your template's css folder.

    For example your personal file would be called m_27.css and may include just the single line
    #headerWrapper {
    background-image: url(../images/alma.jpg);
    }
    Similarly, that for Juila would be named m_7.css and might contain just the line
    #headerWrapper {
    background-image: url(../images/julia.jpg);
    }
    Kuroi Web Design and Development | Twitter

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

  6. #6
    Join Date
    Jun 2006
    Posts
    45
    Plugin Contributions
    0

    Default Re: Selective header display?

    This sounds very logical to me but I have a few more questions:

    If I make my header image the background, wouldn't I lose the linked hotspots?

    Where is the stylesheet/manufacturer association made? Can you give a sample code?

    Does all this get entered into this file: tpl_main_page.php

    Thanks

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

    Default Re: Selective header display?

    Quote Originally Posted by alma View Post
    If I make my header image the background, wouldn't I lose the linked hotspots?
    That depends. Using modern XHTML/CSS techniques you can simply position links over the top of a background image. Changing the background image would make no difference at all to how the page works.

    I'm not sure how well this approach would work with the image map that you have created though, as I've never used an image map.

    Quote Originally Posted by alma View Post
    Where is the stylesheet/manufacturer association made? Can you give a sample code?
    It's made through the stylesheet's name e.g. m_27.css to like manufacturer 27 (you on your site) to the styles specific for your manufacturer's listing page.

    Quote Originally Posted by alma View Post
    Does all this get entered into this file: tpl_main_page.php
    No. With this approach that file's not touched at all. The tpl_header.php file would need some changes, if only to remove some of your existing customization, and work the links in a slightly different way.
    Kuroi Web Design and Development | Twitter

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

 

 

Similar Threads

  1. selective shipping charge
    By zmtak in forum Customization from the Admin
    Replies: 8
    Last Post: 9 Dec 2011, 04:06 AM
  2. Selective Usage
    By Onyxdragun in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Jul 2010, 10:27 AM
  3. Selective Shipping
    By enawdski in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 29 Mar 2009, 02:07 AM
  4. Selective product availability
    By Blooms in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 25 Aug 2007, 05:25 PM

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