Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Weird custom infobox problem


mr_zingh

Recommended Posts

I needed a new info box to hold my static navigation so i looked into how the search box has been defined in all files and simply made a copy of it, removed everything apart from the paragraph part which said "Use keywords to find....." and replaced that part in my copied box with the navigation.

 

Well it's perfect, apart from an odd problem. If you goto http://dbexchange.net/skynet_store you will notice the Currency drop down menu appears directly above my navigation.

 

I've noticed that whereever i paste the following in the column_left.php file, the box directly above my box will appear in that place:

 

include(DIR_WS_BOXES . 'mycategory.php');

 

// STS: ADD

$sts_block_name = 'mycategory';

require(STS_RESTART_CAPTURE);

// STS: EOADD

 

Please help, i'm soooo close to bringing this to completion.

 

Regards.

Link to comment
Share on other sites

In Column_left have you defined the new box

EXAMPLE:

ob_start();
 require(DIR_WS_BOXES . 'whats_new.php');
 $osc_block['whatsnewbox'] = ob_get_contents();
 ob_end_clean();

Link to comment
Share on other sites

It's in there, but because i'm using STS, it's not written as your example.

 

it like:

 

require(DIR_WS_BOXES . 'whats_new.php');

 

// STS: ADD

$sts_block_name = 'whatsnewbox';

require(STS_RESTART_CAPTURE);

// STS: EOADD

Link to comment
Share on other sites

Fixed!!

 

In my box file i changed this:

 

<?php

// $info_box_contents = array();

$info_box_contents[] = array('text' => BOX_MENU_TABLE);

new infoBox($info_box_contents);

?>

 

to this:

 

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_MENU_TABLE);

new infoBox($info_box_contents);

?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...