Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Infobox Costumizer with Coolmenu


tuca

Recommended Posts

Hi,

i'm trying to use InfoboxCostumizer whit milestone Ms2 2.2 on a windows system with EasyPhp 1.7 Rc1. All is ok but i' m not able to integrate it with coolmenu http://www.oscommerce.com/community/contributions,1033.

When i try to click on a category i recieve this error message:

 

Fatal error: Cannot instantiate non-existent class: productlistingbox in ...\www\milestone\catalog\includes\modules\product_listing.php on line 143

 

 

I created the directory "CoolmenuBox" in "images" and i addeed this code to catalog\includes\class\boxes:

 

//New CoolmenuBox Class

class CoolmenuBox extends tableBox {

function CoolmenuBox($contents) {

$info_box_contents = array();

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

$this->table_cellpadding = '1';

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

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

}

 

function CoolmenuBoxContents($contents) {

$this->table_cellpadding = '3';

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

$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' => $contents[$i]['align'],

'form' => $contents[$i]['form'],

'params' => 'class="CoolmenuBoxContents"',

'text' => $contents[$i]['text']));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

 

class CoolmenuBoxHeading extends tableBox {

function CoolmenuBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'CoolmenuBox/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'CoolmenuBox/corner_right_left.gif');

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'CoolmenuBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'CoolmenuBox/corner_right.gif');

} else {

$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="CoolmenuBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="CoolmenuBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="CoolmenuBoxHeading" nowrap',

'text' => $right_corner));

 

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

}

}

 

 

 

I also addeed this code to the stylesheet file:

 

.CoolmenuBox {

background: #b6b7cb;

}

TD.CoolmenuBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background: #b6b7cb;

color: #ffffff;

}

.CoolmenuBoxContents {

background: #f8f8f9;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

I' d like to use both InfoboxCostumizer and Coolmenu...so can you help me?

 

Thank You for your pacience.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...