Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Where is the sql statement that performs the search? It seems like the search is performed on the products_name field. I'd like to change it to the products_description field. Or at least be able to understand more about how the search is conducted.

 

 

Thanks

Mark

 

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Link to comment
Share on other sites

@@mdtaylorlrim

 

Searches are performed in advanced_search.php

 

To enable what you want, open includes/modules/content/header/cm_header_search.php and change

$search_box .= tep_hide_session_id() . '</form>';

to

$search_box .= tep_draw_hidden_field('search_in_description', '1') . tep_hide_session_id() . '</form>';

and in includes/modules/boxes/bm_search.php change

' </div>' . tep_draw_hidden_field('search_in_description', '0') . tep_hide_session_id() .

to

' </div>' . tep_draw_hidden_field('search_in_description', '1') . tep_hide_session_id() .

osCommerce user since 2003! :thumbsup:

Link to comment
Share on other sites

  • 4 weeks later...

Thank You, Frank! 
 

The adjustment works well.
There is a question: how to add the ability to search in articles and information pages?
Is there a simple option for this?
Thank you.

Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...