glk Posted March 21, 2004 Share Posted March 21, 2004 There just isn't enough info on the forum on hacking the advanced_search.php so I have to ask again. I can;t come up with answer myself inspite of all the vested time. I want to do one of two things; which ever is easiest. In the Left_Column 'Quick-Search' Box... Remove advanced_search.php link ~ OR ~ In advance_search -- remove options Price From: Price To: Date From: Date To: I made my manufacturer's list into a Price Option Search so the Price From/To: is redundant. And I don't want the date search option to show up at all. Actually, I really don't need the whole advanced_search option at all since I added a contrib that replaces the out-of-box search.php with same name file that searches the whole site including all product & category descriptions. FYI: Below is the new search.php file. Commented out is the black bolded line and it blocks out the manufacturer's box yet when I comment out the part I show in blue bold, my shopping cart button goes to advanced_search.php instead of shopping cart, so I have uncommented that part even though that line eliminated the link to advanced_search.php from the left-column search box. >>>>>>>>>>>>>>> <?php /* $Id: search.php,v 1.22 2003/02/10 22:31:05 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <!-- search //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_SEARCH); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('form' => tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'), 'align' => 'left', 'text' => BOX_SEARCH_TEXT . '<br>' . tep_draw_hidden_field('search_in_description','1') . tep_draw_hidden_field('inc_subcat', '1', true) . tep_draw_input_field('keywords','','size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . tep_image_submit('button_quick_find.gif', IMAGE_BUTTON_SEARCH) . '<br>' . tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)))) . '<br>' . /*tep_draw_pull_down_menu('manufacturers_id', tep_get_manufacturers(array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS)))) . '<br>' .*/ tep_hide_session_id() . '<br><a href="' . /*tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . */BOX_SEARCH_ADVANCED_SEARCH . '</b></a>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- search_eof //--> GLK Link to comment Share on other sites More sharing options...
♥yesudo Posted March 22, 2004 Share Posted March 22, 2004 Email me your file/s and I'll have a go. [email protected] Your online success is Paramount. Link to comment Share on other sites More sharing options...
fmerrill Posted March 22, 2004 Share Posted March 22, 2004 Why don't you just edit the /includes/boxes/search.php and change the following: $info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'), 'align' => 'center', '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>'); to this: $info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'), 'align' => 'center', '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); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.