Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search


ahmed5

Recommended Posts

goto your catalog\advanced_search.php backup the file then find this code

 

tep_draw_checkbox_field('search_in_description', '1')

 

change it to:

tep_draw_checkbox_field('search_in_description', '1', true)

 

then the default will be to search in descriptions.

Link to comment
Share on other sites

goto your catalog\advanced_search.php backup the file then find this code

 

tep_draw_checkbox_field('search_in_description', '1')

 

change it to:

tep_draw_checkbox_field('search_in_description', '1', true)

 

then the default will be to search in descriptions.

 

yea but thats only advanced search, i want it in quick find too

Link to comment
Share on other sites

Ok, if you're planning to remove that checkbox so to always search in the products description, backup files, open your catalog\advanced_search_result.php locate this code:

 

		  if (isset($HTTP_GET_VARS['search_in_description']) && ($HTTP_GET_VARS['search_in_description'] == '1')) $where_str .= " or pd.products_description like '%" . tep_db_input($keyword) . "%'";

 

change it to this:

$where_str .= " or pd.products_description like '%" . tep_db_input($keyword) . "%'";

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...