If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / Advanced search Limit the manufacturers list

Advanced search Limit the manufacturers list

Locked

Started by ladyink on 7 Oct 2009, 12:04 PM · Views: 1,098

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

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!