Is it possible to set the header NOT to display when in manufacturer view?
Or to vary header?
Thanks
Alma
Is it possible to set the header NOT to display when in manufacturer view?
Or to vary header?
Thanks
Alma
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)
sent you an email to request help!
I found this.
How would I set the condition to manufacture ID?require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>
Thanks
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 lineSimilarly, that for Juila would be named m_7.css and might contain just the line#headerWrapper {
background-image: url(../images/alma.jpg);}#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)
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
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.
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.
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)