cgchris99 Posted November 25, 2003 Share Posted November 25, 2003 I have seen on a few sites where they move the search field into the right hand side of the header? It ends up being above the icons for My Acct, Cart Contents and Checkout. How do I do this? Thanks for any information Link to comment Share on other sites More sharing options...
cgchris99 Posted November 28, 2003 Author Share Posted November 28, 2003 I'll answer my own question in case anyone else needs it. I found it in another post Ok, nothing on tv so I put together what you needed 1. Remove category counts. Go to "Admin | My Store | Show Category Counts" and set to False 2. Remove "->" from after Category names that have sub-categories. Find In ?/include/boxes/categories.php?, CODE if (tep_has_category_subcategories($counter)) { $categories_string .= '->'; } Replace with: CODE // if (tep_has_category_subcategories($counter)) { // $categories_string .= '->'; //} 3. Move Search function to Header. Find in "/includes/header.php": CODE <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td> (This is where you display your logo) Add After: CODE <td align="right"> <?php echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . BOX_SEARCH_TEXT . '<br>' . 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) . ' ' . '<a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>'; ?> </td> The text around the search box is defined in "/includes/languages/english.php" (and any other languages suppoted). Link to comment Share on other sites More sharing options...
mikes Posted November 28, 2003 Share Posted November 28, 2003 Lol, that was a post I did real quick to help someone else put the search put there. Here is a better solution. It formats a little more nicely but does have hard coded text and width. You'll have to replace the variables if you use more than one language. <?php // * Quich Search * // ?> <td align="right" valign="middle"> <?php echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'); ?> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center"></td> <td align="center" class="main"> <table border="0" cellspacing="0" cellpadding="2"> <tr> <td align="center" class="main"><?php echo 'Quick Search:'; ?></td> <td align="center"><?php echo tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: 150px"') . tep_hide_session_id(); ?></td> <td align="center"><?php echo tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH); ?></td> </tr> <tr> <td></td> <td align="center" class="smallText"><?php echo '<a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>Advanced Search</b></a>'; ?></td> <td></td> </tr> </table> </td> </tr> </table> </form> </td> hth Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.