Zen Cart Logo
Forums / General Questions / Advanced search Limit the manufacturers list

Advanced search Limit the manufacturers list

Locked

Views: 1,095

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
7 Oct 2009, 12:04 PM
#1
ladyink avatar

ladyink

Zen Follower

Join Date:
Oct 2007
Posts:
105
Plugin Contributions:
0

Advanced search Limit the manufacturers list

I found where to limit the side box manufacturers list to manufacturers that have products attached.

How can I do that same thing with the "advanced search" manufacturers list?

Thanks
Nancy

9 Oct 2009, 3:10 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Advanced search Limit the manufacturers list

Using your templates and overrides, edit the file:
/includes/templates/template_default/templates/tpl_advanced_search_default.php

copy it to your templates and overrides:
/includes/templates/your_template_dir/templates/tpl_advanced_search_default.php

and locate the line around 41 that reads:

    <?php echo zen_draw_pull_down_menu('manufacturers_id', zen_get_manufacturers(array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS))), $sData['manufacturers_id']); ?>

and change the line to read:

    <?php echo zen_draw_pull_down_menu('manufacturers_id', zen_get_manufacturers(array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS)), PRODUCTS_MANUFACTURERS_STATUS), $sData['manufacturers_id']); ?>

and it will match the way the sidebox works from the setting in the Configuration ... Maximum Values ...

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