Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Modify search mechanism


cliq

Recommended Posts

Posted

Hi all.

 

Somebody know how to simple search (form search in index page) to make search in description of products, without needing to go the advanced search and select "Search In Product Descriptions" ?

 

Thank you.

 

Regard's

Diego

Posted

Okay doke,

 

In advanced_search_result.php replace line 268 (for me, do a search and replace for you):

 

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) . "%'";

 

with

 

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

 

Seems to work for me. Let me know of any probs.

Nicki Tang

Archived

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

×
×
  • Create New...