Zen Cart Logo
Forums / Basic Configuration / place manufacturers drop down in header

place manufacturers drop down in header

Locked

Views: 6,687

Results 1 to 20 of 24
This thread is locked. New replies are disabled.
25 Sep 2006, 1:20 PM
#1
idlerob avatar

idlerob

New Zenner

Join Date:
Apr 2006
Posts:
27
Plugin Contributions:
0

place manufacturers drop down in header

Is it possible to place the manufacturers drop down box in the header of the website?

26 Oct 2007, 4:58 PM
#2
tbrides avatar

tbrides

Zen Follower

Join Date:
Oct 2006
Posts:
198
Plugin Contributions:
0

Re: place manufacturers drop down in header

did anybody find out how to do this?
I've searched the forums and tried creating it myself - but with no luck?
Please help

26 Oct 2007, 9:24 PM
#3
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: place manufacturers drop down in header

As far as I know it should be in Admin>>Tools>>Layout Boxes Controller go to the Manufacturers sidebox one and set it to Single Column Status.....lol hopefully someone will correct me if I'm wrong :blush:

30 Oct 2007, 10:18 AM
#4
tbrides avatar

tbrides

Zen Follower

Join Date:
Oct 2006
Posts:
198
Plugin Contributions:
0

Re: place manufacturers drop down in header

It does not work.
I'm guessing it will have to be recoded to fit the header??

anybody?

10 Nov 2007, 11:20 PM
#5
tbrides avatar

tbrides

Zen Follower

Join Date:
Oct 2006
Posts:
198
Plugin Contributions:
0

Re: place manufacturers drop down in header

Hi,
I actually got this to work.
Somebody remind me to post up the solution.

27 Nov 2008, 7:30 PM
#6
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

Re: place manufacturers drop down in header

A year later ... I'm reminding you to post the solution!

30 Nov 2008, 12:17 AM
#7
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Re: place manufacturers drop down in header

any solution?

30 Nov 2008, 4:51 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: place manufacturers drop down in header

You can customize the manufacturers.php sidebox by changing the box being called from:
$column_box_default

to read:
tpl_box_header.php

Then alter the header for: the tpl_header.php

to include the manufacturers.php sidebox just as it does the search_header.php sidebox ...

Then change the settings on the display of the manufacturers.php sidebox from being a scroll list to a dropdown in your Admin Settings for the Configuration ... Maximum Values ...

Manufacturers List - Scroll Box Size/Style
Number of manufacturers names to be displayed in the scroll box window. Setting this to 1 or 0 will display a dropdown list.

10 Mar 2009, 8:19 PM
#9
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: place manufacturers drop down in header

I just opened a new thread about this here.

My apologies for that as I never seen this thread until now... Looks like I am on the right tracks:

If you look at https://www.dystynction.com you'll see I have the search box positioned in my header bar to the right. I'm trying now to position the manufacturers drop down box just next to this.

In the tpl_header.php I can see what is generating the search box:

<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>

I have tried to generate the manufacturers list using this just below this in the tpl_header.php file:

<div id="manufacturers"><?php require(DIR_WS_MODULES . 'sideboxes/manufacturers_select.php'); ?></div>

However, this just causes major problems.... It does not work at all...

Can you please explain what you mean by:

You can customize the manufacturers.php sidebox by changing the box being called from:
$column_box_default

to read:
tpl_box_header.php

Then alter the header for: the tpl_header.php

10 Mar 2009, 8:32 PM
#10
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: place manufacturers drop down in header

I tried opening manufacturers.php and changing this:

to this:

    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    require($template->get_template_dir($tpl_box_header.php, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $tpl_box_header.php);

.....as per instructions above..... however, this just causes site malfunction....

Can you please be more specific/accurate as to exactly what to change this line to?

Sorry if I'm missing the obvious, but I'm a total amateur.

11 Mar 2009, 8:37 AM
#11
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: place manufacturers drop down in header

Can anyone offer a little help on this one, I've tried various combination's of Ajeh's fix above but just can't get it to work :-(

11 Mar 2009, 2:46 PM
#12
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: place manufacturers drop down in header

EUREKA!!!!!!!!!!!!!!!!!

Here's how it's done:

  1. From Admin>Tools>LayoutBoxesController.... switch manufacturers sidebox off (unless you also want it showing as a sidebox)... Then, from Admin>Configuration>MaximumValues you'll need to set Manufacturers List - Scroll Box Size/Style to 0 or 1 so that it becomes a drop down menu.

  2. Edit /includes/modules/sideboxes/manufacturers.php to replace:

      require($template->get_template_dir('tpl_manufacturers_select.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_manufacturers_select.php');

    $title = '<label>' . BOX_HEADING_MANUFACTURERS . '</label>';
    $title_link = false;
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);

with this:

    require($template->get_template_dir('tpl_manufacturers_select.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_manufacturers_select.php');

    $title = '<label>' . BOX_HEADING_MANUFACTURERS . '</label>';
    $title_link = false;
    require($template->get_template_dir('tpl_box_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_box_header.php');	
  1. add the following line to /includes/templates/YOUR_TEMPLATE/common/tpl_header.php
<div id="manufacturersContent"><?php require(DIR_WS_MODULES . 'sideboxes/manufacturers.php'); ?></div>

You'll need to play around with the position of this line and maybe the div tags just to get this looking right and so it doesn't screw up the layout (this will depend on how heavily your tpl_header.php file has already been modified) but you should get it in the right position with a bit of trial and error.

  1. Add the following to your stylesheet.css
#manufacturersContent {
width: 200px;
height: 11px;
float: right;
font-size: 10.5px;
margin-top: -3px;
}

Note that this is the styling I used for my own site. You'll obviously have to style and position it to suit your own site.

Hope this helps someone, I'd been messing around with the code for ages before I got a breakthrough!

11 Mar 2009, 5:22 PM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: place manufacturers drop down in header

Thanks for the update that you got this working and for posting the specific details on what needed to be done to get this working ... :cool:

11 Mar 2009, 6:11 PM
#14
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: place manufacturers drop down in header

You're welcome..... I know what it's like looking for a solution on here so if ever I can help someone else solve something then I don't mind taking a couple of minutes to post a thread...

Nothing more annoying than finding a thread when someone says, "it's ok I solved it" and then doesn't explain how :-)

12 Mar 2009, 8:49 PM
#15
suehigman avatar

suehigman

New Zenner

Join Date:
Jan 2009
Posts:
38
Plugin Contributions:
0

Re: place manufacturers drop down in header

Thank you for this post! It was exactly what I was looking for.

One quick question....how do I replace the "Please Select" from the drop down.

Thanks
Sue

12 Mar 2009, 9:02 PM
#16
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: place manufacturers drop down in header

Easy, search in your english.php for "- please select-" and just change it to whatever you want it to say :-)

12 Mar 2009, 9:19 PM
#17
suehigman avatar

suehigman

New Zenner

Join Date:
Jan 2009
Posts:
38
Plugin Contributions:
0

Re: place manufacturers drop down in header

Perfect! Thank You.

4 Oct 2009, 4:21 PM
#18
loter avatar

loter

New Zenner

Join Date:
Jun 2009
Posts:
19
Plugin Contributions:
0

Re: place manufacturers drop down in header

Already gone mad, doesn't work for me :-(

Nothing appears on frontend... :-| wtf could it be ?

4 Oct 2009, 4:36 PM
#19
loter avatar

loter

New Zenner

Join Date:
Jun 2009
Posts:
19
Plugin Contributions:
0

Re: place manufacturers drop down in header

Loter:

Already gone mad, doesn't work for me :-(

Nothing appears on frontend... :-| wtf could it be ?

damn ##########, I have no products that's why no manufacturers pops up :-|

4 Oct 2009, 11:19 PM
#20
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: place manufacturers drop down in header

Thanks for the update ... and don't be too hard on yourself ... many, many people miss that one ... you gotta have Products to display the manufacturers or they didn't make much ... :cool:

However ... there is a switch to control what displays in the manufacturers sidebox in the Admin in the Configuration ... Maximum Value ...

Manufacturers List - Verify Product Exist
Verify that at least 1 product exists and is active for the manufacturer name to show

Note: When this feature is ON it can produce slower results on sites with a large number of products and/or manufacturers
0= off 1= on