jamesallwood Posted July 30, 2008 Share Posted July 30, 2008 Hi. Does anyone know of a way to set the search facility to automatically search the product description as well as the title without having to check the box in the advanced search? Thanks very much Link to comment Share on other sites More sharing options...
spooks Posted July 30, 2008 Share Posted July 30, 2008 In advanced_search.php find: $info_box_contents[] = array('align' => 'right', 'text' => tep_draw_checkbox_field('search_in_description', '1') . ' ' . TEXT_SEARCH_IN_DESCRIPTION); replace with $info_box_contents[] = array('align' => 'right', 'text' => tep_draw_checkbox_field('search_in_description', '1', true) . ' ' . TEXT_SEARCH_IN_DESCRIPTION); ;) Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
spooks Posted July 31, 2008 Share Posted July 31, 2008 Yet another that asks many questions, but has not the cortesy to respond to the help, ever!!! :angry: Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
FIMBLE Posted July 31, 2008 Share Posted July 31, 2008 Gets on your T*ts does'nt it! Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
jamesallwood Posted August 8, 2008 Author Share Posted August 8, 2008 Huge appologies. I have been away for a while and completely forgot that I posted this is the first place. Your help has been very much appreciated, and truth be told if there wern't people like you to help us we'd all be pretty much beggered! Appologies again. Link to comment Share on other sites More sharing options...
louquito Posted October 14, 2008 Share Posted October 14, 2008 In advanced_search.php find: $info_box_contents[] = array('align' => 'right', 'text' => tep_draw_checkbox_field('search_in_description', '1') . ' ' . TEXT_SEARCH_IN_DESCRIPTION); replace with $info_box_contents[] = array('align' => 'right', 'text' => tep_draw_checkbox_field('search_in_description', '1', true) . ' ' . TEXT_SEARCH_IN_DESCRIPTION); ;) hi sam maybe u could help on this one... i need to make that search works on more 5 descriptions i inserted into database table products.c called products_short_1 products_short_2 products_short_3 products_short_4 products_short_5 the problem is that the code above is for table products_description i dunno where to change the code to make it work tks in advance manuel Link to comment Share on other sites More sharing options...
spooks Posted October 14, 2008 Share Posted October 14, 2008 You need to modify advanced_search_results.php look at the code in that Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
louquito Posted October 14, 2008 Share Posted October 14, 2008 You need to modify advanced_search_results.php look at the code in that y it worked:) just added some parameters now its searching fine maybe u could help me on other issue that is driving me nuts check on this topic http://www.oscommerce.com/forums/index.php?showtopic=317981 tks in advance Manuel Link to comment Share on other sites More sharing options...
raschaa Posted October 19, 2008 Share Posted October 19, 2008 Hi! I would like to have the quick find box always search in the descriptions, can't figure how to make it work... thanks in advance Ragnar Link to comment Share on other sites More sharing options...
spooks Posted October 19, 2008 Share Posted October 19, 2008 In includes/boxes/search.php find: 'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>'); replace with: 'text' => tep_draw_hidden_field('search_in_description',1) . tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>'); Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Guest Posted October 19, 2008 Share Posted October 19, 2008 Thanks Sam, I just added it and it looks good. I do enjoy a good snippet! ;) Might as well delete the link to the advanced search now, since it won't get them any different results...? Nicole Link to comment Share on other sites More sharing options...
raschaa Posted October 20, 2008 Share Posted October 20, 2008 hey Sam, thanks alot! unfortuneatly I can't code but when I see it as in your example it all seems so obvious... @Nicole: advanced search still gives the customer a few more options, if your shop doesn't need them, then you might as well delete the link... Ragnar Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.