Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Where do categories box outputs?


Exeter

Recommended Posts

Hi there,

 

I've been modifing the categories box introducing it into a div with some style options. So, I've writen some code before and after the categories are built:

 

...

...

...

 

?>

<!-- categories //-->

<div class="sidebarBox">

<?php

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

 

} else {

 

$info_box_contents = array();

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

 

...

...

...

 

tep_show_category($first_element);

 

$info_box_contents = array();

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

 

new infoBox($info_box_contents);

 

}

?>

</div>

<!-- categories_eof //-->

 

But it seems that the categories box its writen after that, ive also uploaded the left_column.php so that its this way now:

 

<div class="sidebar">
   <?php
     require(DIR_WS_BOXES . 'categories.php');
     if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { include(DIR_WS_BOXES . 'manufacturers.php'); }
     require(DIR_WS_BOXES . 'search.php');
     require(DIR_WS_BOXES . 'whats_new.php');
     require(DIR_WS_BOXES . 'information.php');
   ?>
</div>

 

But the categories box its been written always out of my div "sidebarBox". Ive been looking the code and it creates an object at the end but I dont manage to find where do that box its written on the web, where is the echo? Thats what I'm having, the divs write before the categories box, so the categories box its outside the div:

<div class="sidebar"><div class="sidebarBox"></div></div>
<table border="0" cellpadding="2" cellspacing="0" width="175"> ... </table>
<table class="infoBox" border="0" cellpadding="1" cellspacing="0" width="100%"> ... </table>

 

 

Could someone give me a tip? Thanks :)

Link to comment
Share on other sites

/catalog/includes/classes/boxes.php

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...