Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Just want search text box and GO button , how?


Guest

Recommended Posts

Posted

I notice on some cool templates they have just a basic text box for search with a go button or graphic beside it. How do i accomplish this? I dont want the advanced search line and the table box around it.

 

Here is my webpage.

 

My Webpage

Posted

you will find the file to alter in catalog/includes/boxes/search.php simply look for the text and remove it

Posted
you will find the file to alter in catalog/includes/boxes/search.php simply look for the text and remove it

 

Yes this will get rid of the text i am sure, but the header text is not located in there as i recall and how do i remove the table border and header for it?

 

Thanks.

 

Matt

Posted

Use the following code:

 

<table border="0" width="100%" cellspacing="0" cellpadding="0"><?php echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'); ?><tr><td align="center"><font color="#FFFFFF">Search by Keyword</font></td></tr><?php echo '<tr><td>' . tep_draw_input_field('keywords', 'osCommerce', 'size="10" maxlength="30" style="text-align: Center; width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH, 'align="absmiddle"') . '</td></tr><tr><td align="center"><a class="advsearch" href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . '</a></td></tr></form></table>' ?>

Posted
Use the following code:

 

<table border="0" width="100%" cellspacing="0" cellpadding="0"><?php echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'); ?><tr><td align="center"><font color="#FFFFFF">Search by Keyword</font></td></tr><?php echo '<tr><td>' . tep_draw_input_field('keywords', 'osCommerce', 'size="10" maxlength="30" style="text-align: Center; width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH, 'align="absmiddle"') . '</td></tr><tr><td align="center"><a class="advsearch" href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . '</a></td></tr></form></table>' ?>

 

 

Where do i put this code?

 

In search.php i assume. What do i replace this with? Di replace everything in search.php with this?

 

Thanks

 

Matt

Archived

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

×
×
  • Create New...