osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

move search & manufacturer boxes

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-28-2002, 12:43 PM
Active Member
 
Join Date: Oct 2002
Location: Arkansas
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
modom
Default move search & manufacturer boxes

Hi,

Anyone know how to move the search and manufacturer boxes above the product listing one on top of the other one?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 12-28-2002, 05:52 PM
Member
 
Join Date: Nov 2002
Location: Pennsylvania
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
|3ackdraft
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 12-28-2002, 06:57 PM
Active Member
 
Join Date: Oct 2002
Location: Arkansas
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
modom
Default

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?
__________________
Sincerely,
Melinda

www.designhosting.biz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 12-29-2002, 12:22 PM
Member
 
Join Date: Nov 2002
Location: Pennsylvania
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
|3ackdraft
Default

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"> <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>
that code there will call the search page from anywhere in your site.

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"> ' . 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 //-->
then all you need to do is call this.
Code:
require(DIR_WS_BOXES . 'search.php');
you can do the same with any of the boxes including the manufacturers.

hth
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 12-29-2002, 02:50 PM
Active Member
 
Join Date: Oct 2002
Location: Arkansas
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
modom
Default

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!
__________________
Sincerely,
Melinda

www.designhosting.biz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 12-29-2002, 06:17 PM
Member
 
Join Date: Nov 2002
Location: Pennsylvania
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
|3ackdraft
Default

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');
is used to call the 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');
calls the search form, that would be why you would not be able to find the actual <form> tags
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 01-01-2003, 03:07 PM
Active Member
 
Join Date: Oct 2002
Location: Arkansas
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
modom
Default

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/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 01-27-2003, 05:10 PM
Lurker
 
Join Date: Jan 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jhasman
Default Search box in Header to the right of logo

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 01-27-2003, 07:24 PM
Active Member
 
Join Date: Oct 2002
Location: Arkansas
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
modom
Default

Hi,

Please send me your link so I can look at it.

You can also send me your header page.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 08:13 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax