Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need to get rid of the box around the new products


matrix2223

Recommended Posts

I know this has prob. been asked before and I know I read it somewhere I just cant remember soo please forgive me.

 

What I am trying to do is completly get rid of the box and the heading of the new products for ?? The only thing I want left is the products themselves.

 

Also while Im at it I would like to have the cart info not the box in the header beside the logo? Im assuming that is like adding the search box in the header copy the code and paste it in the header.

 

Thanks a million,

Eric

Link to comment
Share on other sites

I know this has prob. been asked before and I know I read it somewhere I just cant remember soo please forgive me.

 

What I am trying to do is completly get rid of the box and the heading of the new products for ?? The only thing I want left is the products themselves.

 

Also while Im at it I would like to have the cart info not the box in the header beside the logo? Im assuming that is like adding the search box in the header copy the code and paste it in the header.

 

Thanks a million,

Eric

 

Hi Eric,

 

yes to your second question.

 

for the first, you need to create a new class in includes/classes/boxes.php

get rid of the header first in includes/modules/new_products.php by commenting out this

 // new contentBoxHeading($info_box_contents);

then in the bottom part you see this:

 new contentBox($info_box_contents);

change to

new contentBoxNew($info_box_contents);

 

ok now open includes/classes/boxes.php

look for the contentBox class, copy it, rename it.

original:

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

function contentBoxContents($contents) {
  $this->table_cellpadding = '4';
  $this->table_parameters = 'class="infoBoxContents"';
  return $this->tableBox($contents);
}
 }

 

change to

class contentBoxNew extends tableBox {

function contentBoxNew($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->contentBoxContentsNew($contents));

$this->table_cellpadding = '0';

$this->table_parameters = 'class="infoBox"';

$this->tableBox($info_box_contents, true);

}

 

function contentBoxContentsNew($contents) {

$this->table_cellpadding = '4';

$this->table_parameters = 'class="infoBoxContents"';

return $this->tableBox($contents);

}

}

 

the change from 1 to 0 removes the infobox border.

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...