I ran into another problem. Little more major this time. I want to make several category boxes. I did went over the instructions several times on what to do to make multiple categories. When I thought I done what the instructions says, just about all my sideboxes and center column contents disappears. I am not sure what I am doing wrong. However, what is really strange is that sometimes everything shows up but when i refresh the page they disappear and stay gone. I even try resetting the boxes in the layout box manager and still having this problem.
Here is the link to the website: www.mistys-toys.com
Also here is one of the files I tried to edit. Once I had all of the files listed separate-category in this file renamed with the _01 at the end of category:
Separate_category_01_sidebox.php
PHP Code:
<?php
/**
* separate category sidebox - allows a separate category sidebox to be added to your site
*
* @package templateSystem
* @copyright Portions Copyright 2009 www.coolcarpartsonline.com
* @copyright 2007 Kuroi Web Design
* @copyright Portions Copyright 2003-2007 Zen Cart Development Team
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: 2010-09-01 $torvista
*/
/*************
Display Category Content
******************/
$categories_query_ap = "select c.categories_id, cd.categories_name, c.parent_id, c.categories_image
from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd " .
"where c.categories_id = cd.categories_id
and c.categories_status = 1
and c.parent_id = 6
and cd.language_id = '" . (int)$_SESSION['languages_id'] . "'" ."
order by sort_order, cd.categories_name";
$categories_ap = $db->Execute($categories_query_ap, '', true, 150);
$add_content ='<ul class="separatesideboxlist">';
while (!$categories_ap->EOF) {
$id = $categories_ap->fields['categories_id'];
$name = $categories_ap->fields['categories_name'];
$add_content .= '<li><a href="' . zen_href_link(FILENAME_DEFAULT, '&cPath='.$id) . '">'.$name.'</a></li>' . "\n";
$categories_ap->MoveNext();
}
$add_content .= '</ul>';
//debug echo $add_content;
unset($name);
/****************
End Of Additions
********************/
// test if box should display
$show_separate_category_01_sidebox = true;
if ($show_separate_category_01_sidebox == true) {
require($template->get_template_dir('tpl_separate_category_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_separate_category_sidebox.php');
$title = BOX_HEADING_SEPARATE_CATEGORY_01_SIDEBOX;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
?>
Also this file:
PHP Code:
<?php
/**defines for Separate Category Sidebox
*/
define('BOX_HEADING_SEPARATE_CATEGORY_01_SIDEBOX', 'Toys');
define('TEXT_SEPARATE_CATEGORY_01_SIDEBOX', '');
?>
Please help.
Michelle
Bookmarks