Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

putting search box on right hand side of the header?


stevennickelby

Recommended Posts

Can't get the search box(or any other box to) go to the right side in the HEADER.(header.php)...

 

I placed the script,

 

<?php require('boxes/search2.php'); ?>

 

and the box displays...only it's in the left coloumn of the header.

 

I did a test and used A word, instead of THE php script and that displayed on the right hand side,

but i can't get the box to be on the right?

 

 

Also is there a way to have the search field and magnifying glass to be displayed without the big box around it?,

-maybe if that big box is gone the search field might go to the right?

 

Can anybody help...please!!

 

There must be a way :(

 

Cheers!!

Link to comment
Share on other sites

  • 6 months later...

Thanks for that link Melinda

 

Unfortunately it keeps coming up with an error message

 

Call to undefined function: osc_draw_input_field()

 

My whole table cell looks likes this

 

<td valign="middle"><?php echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . osc_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . osc_draw_hidden_field('search_in_description' , '1') . 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></form>';?>

</td>

 

I don't know what I have done wrong - PHP is not my hot point but I am trying to improve.

 

Also if I want to put the currency selector in the header also how do I do that, as when I put the infobox in it appears on the right.

 

If anyone could explain the reason it appears on the right for my understanding I would be grateful.

Link to comment
Share on other sites

  • 1 year later...

I am using the search2 in my header but when I do a search if I am logged in it will log me out. I am using yahoo as my service provider. When I use the search that comes standard with oscommerce it does not log me out.

 

I am thinking it has something to do with the following line but not sure. I am new to php.

this is the search box that comes with oscommerce.

$info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),

 

this is the search2:

<form name="quick_find" action="advanced_search_result.php" method="get">

 

there is nothing about NONSSL in the code for search2.

 

Any help is appreciated.

 

Mike

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...