Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

knock off the corners


tglasgow

Recommended Posts

Recently I knocked the rounded corners of the info boxes be modifying the file catalog/includes/classes/boxes.php and inserting pixel_trans.gif into a few places. I noticed that this didn't remove the rounded corners from New products for October. Which file do I need to edit to achieve this and while you are there how do I change which products are displayed in New Products for October?

 

Thanks,

Tim

TG

Link to comment
Share on other sites

The left and right columns use the infobox class, while the internal new_product box uses the contentbox class.

 

But to do what you want to do, goto

catalog/incudes/classes/boxes.php

and change this:

class contentBoxHeading extends tableBox {

   function contentBoxHeading($contents) {

     $this->table_width = '100%';

     $this->table_cellpadding = '0';



     $info_box_contents = array();

     $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"', 'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif')),

                                  array('params' => 'height="14" class="infoBoxHeading" width="100%"', 'text' => $contents[0]['text']),

                                  array('params' => 'height="14" class="infoBoxHeading"', 'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif')));

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

   }

 }

to this

 

class contentBoxHeading extends tableBox {

   function contentBoxHeading($contents) {

     $this->table_width = '100%';

     $this->table_cellpadding = '0';



     $info_box_contents = array();

     $info_box_contents[] = array( array('params' => 'height="14" class="infoBoxHeading" width="100%"', 'text' => $contents[0]['text']) );

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

   }

 }

 

And test... because I edited this code here :)

Link to comment
Share on other sites

thanks for pointing me in the right direction all I changed was this:

 

class contentBoxHeading extends tableBox {

function contentBoxHeading($contents) {

$this->table_width = '100%';

$this->table_cellpadding = '0';

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"', 'text' => tep_image(DIR_WS_IMAGES . 'pixel_trans.gif')),

array('params' => 'height="14" class="infoBoxHeading" width="100%"', 'text' => $contents[0]['text']),

array('params' => 'height="14" class="infoBoxHeading"', 'text' => tep_image(DIR_WS_IMAGES . 'pixel_trans.gif')));

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

}

}

TG

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...