I feel like an idiot. I accidently deleted my categories.php file from includes/modules/sideboxes/CUSTOM/categories.phpIs there a way to get it back?
I feel like an idiot. I accidently deleted my categories.php file from includes/modules/sideboxes/CUSTOM/categories.phpIs there a way to get it back?
If you have not made any change on it, just copy the one in the default template. If you did make change, you will have to find if you have a backup copy on your hdd.
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
There isn't one there to copy. I went to includes/modules/sideboxes/classic/ and all that's in there is a txt file.
it's in includes/modules/sideboxes/
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Where you need to get the original copy from is /includes/modules/sideboxes/categories.php.
There isn't one there either![]()
Then you have to download the ZC package again and get the file from there.
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
OK, then you're going to have to get a copy from a fresh download of the files.
You might be able to take a copy of this and save it as categories.php (from a v1.3.8a set)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 $
*/
$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);
?>
Got it! All better!Thank you so much! I was panicing thinking I'd ruined my store!