mondobongo3 Posted June 5, 2010 Posted June 5, 2010 Hello! Me again, other change :D I want to add a drop-down in my search box, to restrict search on specific categories. But I want it only for TOP CATEGORIES; I don't want to display any subcategory in dropdown. For my search box I disabled advanced search because I don't need it. Thank you very much! below is the actual code from my includes/boxes/search.php <?php /* $Id: search.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 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('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>' ); new infoBox($info_box_contents); ?> </td> </tr> <!-- search_eof //-->
mondobongo3 Posted June 6, 2010 Author Posted June 6, 2010 Nobody knows how to do it? I saw some add-on, but it was made for STS and it was showing all categories, not onli Top ones :(
mondobongo3 Posted June 7, 2010 Author Posted June 7, 2010 Or maybe somebody already did and I don't know? All I could find is this: http://www.oscommerce.com/community/contributions,2251 But it also must be modified, because it is for STS and don't fit in my hard-coded template. Please give me a clue.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.