♥mdtaylorlrim Posted March 30, 2017 Share Posted March 30, 2017 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 More sharing options...
frankl Posted March 30, 2017 Share Posted March 30, 2017 @@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! Link to comment Share on other sites More sharing options...
♥mdtaylorlrim Posted March 30, 2017 Author Share Posted March 30, 2017 @@frankl Thanks! I'll give that a try. 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 More sharing options...
Fredi Posted April 22, 2017 Share Posted April 22, 2017 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.