Hi, i am wanting a big search function at the centre of my index page, almost google style, any ideas on how i would go about doing this,
Thanx
This is a discussion on search function within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi, i am wanting a big search function at the centre of my index page, almost google style, any ideas ...
Hi, i am wanting a big search function at the centre of my index page, almost google style, any ideas on how i would go about doing this,
Thanx
Take the code in search.php and insert that into your page where you want it..
JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
oh dear, is it really that simple! :/
I tried it and it didn't work just showed the code
I'll try harder this time![]()
Like showed the PHP code?
Which file are you inserting it in and are you properly coding the PHP... ie the code in within a <?php .... ?> block....
JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
cheers for your help bruv, i'll check it now, hopefully it just was the tags
<!-- search //-->
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_SEARCH);
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' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-400) . 'px"') . ' ' . tep_hide_session_id() . 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>');
new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- search_eof //-->
is this the correct code?
or this?
< form name="quick_find" method="get"
action="http://www.yoururl.com/advanced_search_result.php">
< input type="text" name="keywords" size="10" maxlength="30" value="" style="width:
95px"> <input type="submit" value="go"><br>
< a href="http://www.yoururl.com/advanced_search.php"><b style="fontsize:
8pt;">Advanced Search</b></a>
< /form>
neither one was workin
Last edited by silverchair; 03-09-2009 at 12:38 PM.
Second one will never work.
WHERE and WHICH file are you adding this too?
JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
i am trying to add it to my index page, but there's so many of em, any ideas?
Seaming a shopping cart is nothing like google....where would you like it?
Our cart is broken up to 5 main parts. Header, footer, left menu column, right column and the body (the center part) - where most of the cart is changed.
Seamin how SEARCH already can be easy swich from left and right column - so Header, footer or body....???
JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Bookmarks