olaf_naujoks Posted August 20, 2010 Posted August 20, 2010 some body can help me for modify the include/boxes/search.php i need the custommer can searh by item number (products_id) in my web i am show a item #, i thing the item # is the same products_id live demo www.4-tuning-shop.com i was finded a contribug whit can do this but this other box i dont like 2 search box in column left i wanna only one seach box in the column left whit can search the products by NAME, ITEM NUMBER AND DESCRIPTION the code of the original search.php is this: <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_SEARCH_TEXT); 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' => '<input type="hidden" name="search_in_description" value="1">' . tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . 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); ?> this is the code of the contribug i was download itemnumber.php : <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_LOOKUP_PRODUCT); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('form' => tep_draw_form('itemnumber', tep_href_link(FILENAME_PRODUCT_INFO, '', 'NONSSL', false), 'get'), 'align' => 'center', 'text' => tep_draw_input_field('products_id', '', 'size="5" maxlength="5" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_LOOKUP_PRODUCT) . '<br>' . BOX_LOOKUP_TEXT . '<br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO) . '">'); new infoBox($info_box_contents); ?> please help me, i have one weeck looking a solution but i can´t find thanks a lot in advance....
Recommended Posts
Archived
This topic is now archived and is closed to further replies.