Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search field in header


Guest

Recommended Posts

Hi all,

 

I want to place the search field in the header just above where it says:

 

My Account Cart Contents Checkout

 

But i dont want it to be in an info box. i all i would like to display is the field to enter the search terms and the little magnifying glass.

 

any ideas how to do this anyone?

Link to comment
Share on other sites

In catalog/includes/header.php - just after:

 

    <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>

 

add:

 

    <td class="searchBoxContents" width="225" align="left">
<?php
     if (ALLOW_QUICK_SEARCH_DESCRIPTION == 'true') {
  $param = '<input type="hidden" name="search_in_description" value="1">';
 } else {
    $param = '';
} 
$hide = tep_hide_session_id();

echo '<form name="quick_find" method="get" action="' . tep_href_link( FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false) . '">'; 
echo $hide .  $param . '<input type="text" name="keywords" size="25" maxlength="50" value="' . htmlspecialchars(StripSlashes(@$HTTP_GET_VARS["keywords"])) . '"> ' . tep_image_submit('button_quick_find.gif') . '<br><br>'; 
echo '</form>'; 
?></td>

 

Matti

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...