This is a discussion on move search & manufacturer boxes within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi, Anyone know how to move the search and manufacturer boxes above the product listing one on top of the ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi, Anyone know how to move the search and manufacturer boxes above the product listing one on top of the other one? |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| I am not quite understanding what it is you are trying to accomplish. however the boxes are called via the left_column.php and right_column.php located in 'includes/' just change the order in which they are listed. hth |
|
#3
| |||
| |||
| I am trying to move the search and manufacturers box to the product listing column or in the header. I just want the menus where you type the search item and not the whole box or the text. Is this possible? |
|
#4
| |||
| |||
| It is possible, you just need to strip out the unwanted tags. you can add search to any page really. just use: Code: <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">&nbsp;<input type="submit" value="go"><br> <a href="http://www.yoururl.com/advanced_search.php"><b style="font-size:8pt;">Advanced Search</b></a> </form> or if you decide to strip out the unwanted tags. open 'includes/boxes/search.php' and replace the code with the following. all I did was remove the beginning html tags. now it just includes the same as above. Code: <?php
/*
$Id: search.php,v 1.21 2002/05/27 13:26:34 hpdl Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2001 osCommerce
Released under the GNU General Public License
*/
?>
<!-- search //-->
<?php
$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
'text' => BOX_HEADING_SEARCH
);
new infoBoxHeading($info_box_contents, false, false);
$hide = tep_hide_session_id();
$info_box_contents = array();
$info_box_contents[] = array('form' => '<form name="quick_find" method="get" action="' . tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false) . '">',
'align' => 'center',
'text' => $hide . '<input type="text" name="keywords" size="10" maxlength="30" value="' . htmlspecialchars(StripSlashes(@$HTTP_GET_VARS["keywords"])) . '" style="width: ' . (BOX_WIDTH-30) . 'px">&nbsp;' . 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);
?>
<!-- search_eof //-->
Code: require(DIR_WS_BOXES . 'search.php'); hth |
|
#5
| |||
| |||
| Thank you! I put both the form and the search code to test out and it worked. Then I added the manufacturers code and that worked. The first 5 lines under <!php will strip out the heading of the boxes so that worked also. Where does this go and what does it do? require(DIR_WS_BOXES . 'search.php'); I don't have this anywhere and the functions are working. Other question is: Is that form something that is on one of the php pages because I've been looking for it and couldn't find it? This would be a good one for the manual! |
|
#6
| |||
| |||
| well, the large section of code is supposed to be saved as search.php and put into 'includes/boxes/' then the : Code: require(DIR_WS_BOXES . 'search.php'); if you just pasted the form, or the large code snippet into your default.php, I guess that would also work as well. and to answer you final question, this Code: require(DIR_WS_BOXES . 'search.php'); |
|
#7
| |||
| |||
| Hi, I am having a lot of problems with moving the manufacturers box. I had it working and then it stopped and now it is working again. But, how do I remove the infobox outline around it? I want to keep that style for the left side categories. http://www.blessedbaby.biz/catalog/ |
|
#8
| |||
| |||
| Hello, I read your post on your search code that can be put anywhere basically. I put your snipet of search code in the header so I can have a search box to the top right, just right of the logo. I could not get the formatting correct, it would put the search box below the logo and not to the right where the three little icons usually are for the cart features. Could you help me out and show me how to get this to work? Thank much, Jay B. Hasman |
|
#9
| |||
| |||
| Hi, Please send me your link so I can look at it. You can also send me your header page. |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| change boxes background color now have double boxes | ANNIE11 | osCMax v1.7 General Mods Discussion | 0 | 08-22-2005 08:16 PM |
| To move the boxes to extreme left and extreme top | developer_x | osCommerce 2.2 Modification Help | 2 | 03-05-2005 11:08 AM |
| Move search box to header | eviternity | osCMax v1.7 Discussion | 2 | 04-15-2004 07:05 PM |
| Full text search in advanced search | Anonymous | osCMax v1.7 Discussion | 0 | 04-15-2004 03:00 PM |
| How Do I Move Delete and Move Boxes Around? | OyedeleG | osCommerce 2.2 Modification Help | 2 | 03-18-2003 01:37 AM |