Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

remove category dropdown from advanced_search


spencermjax

Recommended Posts

Posted

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

Posted
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...