spencermjax Posted April 26, 2006 Posted April 26, 2006 How can I remove the category dropdown box from the advanced_search page and make that search page only search one category?
Guest Posted May 2, 2006 Posted May 2, 2006 In advanced search.php remove the following: <tr> <td class="fieldKey"><?php echo ENTRY_CATEGORIES; ?></td> <td class="fieldValue"><?php echo tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)))); ?></td> </tr> Replace it with: <?php echo tep_draw_hidden_field('categories_id', 3); ?> Replace the 3 with your preferred categories_id :) Matti
yanarasod Posted May 2, 2006 Posted May 2, 2006 In advanced search.php remove the following: <tr> <td class="fieldKey"><?php echo ENTRY_CATEGORIES; ?></td> <td class="fieldValue"><?php echo tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)))); ?></td> </tr> Replace it with: <?php echo tep_draw_hidden_field('categories_id', 3); ?> Replace the 3 with your preferred categories_id :) Matti hello, is it possible that the categories field be removed i.e. there should be no categories but still it will search all. i have products that require no categories, so i dont want categories, in advanced search. and also manufacturers bcoz in am the manufacturers of my products, can i remove these 2.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.