Title says it all. I am trying to diable the categories sidebox from displaying on the main page. www.caitybugscorner.com
Thanks for any help
Title says it all. I am trying to diable the categories sidebox from displaying on the main page. www.caitybugscorner.com
Thanks for any help
Ra,
How about trying this little helpful hint from the Tutorials/Faq
- Search for:
- disable sideboxes
- And we get:
- https://www.zen-cart.com/tutorials/i...hp?article=270
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting
I have been trying that exact code and can't seem to get it to work. Yes I am a new zenner but I am quite aware of the search feature. Just don't quite understand it all.
Below is the code from my includes/modules/sideboxes/categories.php
$main_category_tree = new category_tree;
$row = 0;
$box_categories_array = array();
// don't build a tree when no categories
$check_categories = $db->Execute("select categories_id from " . TABLE_CATEGORIES . " where categories_status=1 limit 1");
if ($check_categories->RecordCount() > 0) {
$box_categories_array = $main_category_tree->zen_category_tree();
}
require($template->get_template_dir('tpl_categories.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_categories.php');
$title = BOX_HEADING_CATEGORIES;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
if ($this_is_home_page) {
$show_categories = false;
} else {
$show_categories = true;
}
?>
Ra,
Change the category.php to this please:
PHP Code:<?php
/**
* categories sidebox - prepares content for the main categories sidebox
*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: categories.php 2718 2005-12-28 06:42:39Z drbyte $
*/
if ($this_is_home_page) {
$show_categories = false;
} else {
$show_categories = true;
}
if ($show_categories == true)
{
$main_category_tree = new category_tree;
$row = 0;
$box_categories_array = array();
// don't build a tree when no categories
$check_categories = $db->Execute("select categories_id from " . TABLE_CATEGORIES . " where categories_status=1 limit 1");
if ($check_categories->RecordCount() > 0) {
$box_categories_array = $main_category_tree->zen_category_tree();
}
require($template->get_template_dir('tpl_categories.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_categories.php');
$title = BOX_HEADING_CATEGORIES;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
?>
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting
Ra,
Did that little code work for you??????
You have a few problems on the site, when I click on the Products, About Us.
- You need to fix
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting