Zen Cart Logo
Forums / Addon Sideboxes / Help. I want add difference categories sidebox on difference page

Help. I want add difference categories sidebox on difference page

Views: 1,178

Results 1 to 1 of 1
23 Apr 2011, 1:44 AM
#1
showpopo avatar

showpopo

New Zenner

Join Date:
Apr 2011
Posts:
1
Plugin Contributions:
0

Help. I want add difference categories sidebox on difference page

I want to get the difference categories sidebox on difference page. But when I use this code, the page can't load. Could somebody help me?

<?php //addPage if(!$this_is_home_page){ require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/categories.php');} else{ require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/categories_css.php'); } ?>

The follow is the code:

<table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper">
  <tr>
<?php
if (COLUMN_LEFT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == ''))) {
  // global disable of column_left
  $flag_disable_left = true;
}
if (!isset($flag_disable_left) || !$flag_disable_left) {
?>

<td id="navColumnOne" class="columnLeft" style="width: <?php echo COLUMN_WIDTH_LEFT; ?>">
<?php
/**
  * prepares and displays left column sideboxes
  *
  */
?>
<div id="navColumnOneWrapper" style="width: <?php echo BOX_WIDTH_LEFT; ?>">
<?php

//addPage
if(!$this_is_home_page){
          require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/categories.php');}
   else{
          require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/categories_css.php');
      }

?>
<?php require(DIR_WS_MODULES . zen_get_module_directory('column_left.php')); ?>
</div></td>
<?php
}
?>
    <td valign="top">
<!-- bof  breadcrumb -->
<?php if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?>
    <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
<?php } ?>
<!-- eof breadcrumb -->

<?php
  if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
    if ($banner->RecordCount() > 0) {
?>
<div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
    }
  }
?>

<!-- bof upload alerts -->
<?php if ($messageStack->size('upload') > 0) echo $messageStack->output('upload'); ?>
<!-- eof upload alerts -->

<?php
/**
  * prepares and displays center column
  *
  */
require($body_code); ?>

<?php
  if (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {
    if ($banner->RecordCount() > 0) {
?>
<div id="bannerFour" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
    }
  }
?></td>