Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I need help configuring some of the infoboxes


lewisqic

Recommended Posts

Hi,

 

I am in need of some assistance in configuring some of my infoboxes on my website, namely, the search and the manufacturers box. I have the sts contribution installed on my store, as well as a few others, but i don't think that has anything to do with the actual inside contents of the infoboxes.

 

The site that i am currently working on can be found at: www.OutfitterWarehouse.com/catalog/index.php

 

The two things that i would like to change in this site are as follows:

1. I need to alter the search infobox so that the green header bar that you see it in will return to its original size of 30 pixels in height, and not the distorted height that it now shows.

2. I need to alter the manufacturers box so that there isn't so much blank space above and below the drop down list that it shows, in other words, i want it to be shorter in height also.

 

I would greatly appreciate any help from anyone on how i might fix these two little things.

lewisqic

Link to comment
Share on other sites

open catalog/includes/classes/boxes.php and find

 

class infoBox extends tableBox {
function infoBox($contents) {
  $info_box_contents = array();
  $info_box_contents[] = array('text' => $this->infoBoxContents($contents));
  $this->table_cellpadding = '0';
  $this->table_parameters = 'class="infoBox"';
  $this->tableBox($info_box_contents, true);
}

function infoBoxContents($contents) {
  $this->table_cellpadding = '3';
  $this->table_parameters = 'class="infoBoxContents"';
  $info_box_contents = array();
  $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));
  for ($i=0, $n=sizeof($contents); $i<$n; $i++) {
	$info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''),
									   'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''),
									   'params' => 'class="boxText"',
									   'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : '')));
  }
  $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));
  return $this->tableBox($info_box_contents);
}
 }

 

add this code just after

 

class searchBox extends tableBox {
function searchBox($contents) {
  $info_box_contents = array();
  $info_box_contents[] = array('text' => $this->searchBoxContents($contents));
  $this->table_cellpadding = '0';
  $this->table_parameters = 'class="infoBox"';
  $this->tableBox($info_box_contents, true);
}

function searchBoxContents($contents) {
  $this->table_cellpadding = '0';
  $this->table_parameters = 'class="infoBoxContents"';
  $info_box_contents = array();
  $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));
  for ($i=0, $n=sizeof($contents); $i<$n; $i++) {
	$info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''),
									   'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''),
									   'params' => 'class="boxText"',
									   'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : '')));
  }
  $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));
  return $this->tableBox($info_box_contents);
}
 }

 

open catalog/includes/boxes/search.php

and change

 

new infoBox($info_box_contents);

 

TO

 

new searchBox($info_box_contents);

 

please backup your files before you try this

Link to comment
Share on other sites

Yeah, that worked to a point, its much better now than it was, thank you. But if you'll look at it again, you'll notice that the green header bar is still a little too tall, and there is still some space underneath the search entry field, is there any way to get it a little smaller? thanks.

lewisqic

Link to comment
Share on other sites

  • 11 months later...

How to CLEAN code around seachbox?

<!-- start searchbox //-->
<table border="0" width="" cellspacing="" cellpadding="">
 <tr>
<td class="boxText"><form name="quick_find" action="http://www.xxx.com/advanced_search_result.php" method="get"><input type="hidden" name="search_in_description" value="1"><input type="text" name="keywords"> <input type="image" src="includes/languages/barbarian/images/buttons/button_quick_find.gif" border="0" alt="search" title=" search "></form></td>
 </tr>
</table>
<!-- end searchbox //-->

i can't fint this part in the files for edit :'(

 

P.S. Im using STS if its help...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...