Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

new products header image


Guest

Recommended Posts

Hi,

 

My site is almost finished but im having problems setting a new style for the main new products box in the content area of the home page.

 

I want to add a simple background image to the header similar to the ones i have got for categories and new products in the left colunm but i can't work out how to do this.

 

Please can you have a look at the site here

 

If you have any suggestions i would most gratful as this is one of the final things i need for the site apart from adding products and changing a few of the standard OSC images on the pages.

 

Cheers in advance

Link to comment
Share on other sites

Hi,

 

My site is almost finished but im having problems setting a new style for the main new products box in the content area of the home page.

 

I want to add a simple background image to the header similar to the ones i have got for categories and new products in the left colunm but i can't work out how to do this.

 

Please can you have a look at the site here

 

If you have any suggestions i would most gratful as this is one of the final things i need for the site apart from adding products and changing a few of the standard OSC images on the pages.

 

Cheers in advance

 

 

in file catalog/inclues/classes/boxes.php there is one class

class contentBoxHeading extends tableBox {

 

in that class for the function

function contentBoxHeading($contents) {

You can change the backgorund by putting new class instaed of this

class="infoBoxHeading"

 

Or In stylesheet change the class content of "infoBoxHeading"

Hard Work Is The Simplest Way Of Success

Link to comment
Share on other sites

Hi,

 

Sorry i'm still a little usure on what to do.

 

in catalog/inclues/classes/boxes.php

 

I have added this for the categories box at the botttom of the code then defined a new style in my style sheet

 

class infoBoxHeadingCategories extends tableBox {
function infoBoxHeadingCategories($contents) {
$this->table_cellpadding = '0';
$info_box_contents = array();
$info_box_contents[] = array(array('params' => 'width="100%" class="infoBoxHeadingCategories"',
'text' => $contents[0]['text']));
$this->tableBox($info_box_contents, true);
}
}

 

I have tried to do the same for the new products in the main content but i cant get the code correct

 

Is it possible to do it this way?

 

If so what would i need to change in the above code i.e. which bit do i need to change to get it to link to the new products box in the main content area.

 

The style in the CSS will be called newproductscontentheader

 

Cheers

Link to comment
Share on other sites

Hi,

 

Sorry i'm still a little usure on what to do.

 

in catalog/inclues/classes/boxes.php

 

I have added this for the categories box at the botttom of the code then defined a new style in my style sheet

 

class infoBoxHeadingCategories extends tableBox {
function infoBoxHeadingCategories($contents) {
$this->table_cellpadding = '0';
$info_box_contents = array();
$info_box_contents[] = array(array('params' => 'width="100%" class="infoBoxHeadingCategories"',
'text' => $contents[0]['text']));
$this->tableBox($info_box_contents, true);
}
}

 

I have tried to do the same for the new products in the main content but i cant get the code correct

 

Is it possible to do it this way?

 

If so what would i need to change in the above code i.e. which bit do i need to change to get it to link to the new products box in the main content area.

 

The style in the CSS will be called newproductscontentheader

 

Cheers

 

 

in file catalog/inclues/classes/boxes.php there is one class

class contentBoxHeading extends tableBox {

 

in that class for the function

function contentBoxHeading($contents) {

 

use following

$info_box_contents = array();
  $info_box_contents[] = array(array('params' => 'height="14" class="newproductscontentheader"',
									 'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif')),
							   array('params' => 'height="14" class="newproductscontentheader" width="100%"',
									 'text' => $contents[0]['text']),
							   array('params' => 'height="14" class="newproductscontentheader"',
									 'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif')));

Hard Work Is The Simplest Way Of Success

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...