Results 1 to 9 of 9
  1. #1
    Join Date
    Jul 2006
    Location
    Southern California
    Posts
    109
    Plugin Contributions
    0

    Default Accidently deleted categories.php

    I feel like an idiot. I accidently deleted my categories.php file from includes/modules/sideboxes/CUSTOM/categories.php Is there a way to get it back?

  2. #2
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Accidently deleted categories.php

    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

  3. #3
    Join Date
    Jul 2006
    Location
    Southern California
    Posts
    109
    Plugin Contributions
    0

    Default Re: Accidently deleted categories.php

    There isn't one there to copy. I went to includes/modules/sideboxes/classic/ and all that's in there is a txt file.

  4. #4
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Accidently deleted categories.php

    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

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Accidently deleted categories.php

    Where you need to get the original copy from is /includes/modules/sideboxes/categories.php.

  6. #6
    Join Date
    Jul 2006
    Location
    Southern California
    Posts
    109
    Plugin Contributions
    0

    Default Re: Accidently deleted categories.php

    There isn't one there either

  7. #7
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Accidently deleted categories.php

    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

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Accidently deleted categories.php

    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_defaultDIR_WS_TEMPLATE$current_page_base,'common') . '/' $column_box_default);
    ?>

  9. #9
    Join Date
    Jul 2006
    Location
    Southern California
    Posts
    109
    Plugin Contributions
    0

    Default Re: Accidently deleted categories.php

    Got it! All better! Thank you so much! I was panicing thinking I'd ruined my store!

 

 

Similar Threads

  1. Accidently over wrote the classic header.php..need help to recover the original
    By imagine4134 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Aug 2010, 05:18 PM
  2. Accidently deleted define_main_page.php Help
    By NYsista872 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 15 Apr 2010, 04:52 AM
  3. accidently deleted SQL Database Help
    By da_bsg in forum General Questions
    Replies: 6
    Last Post: 7 Mar 2010, 01:19 AM
  4. Accidently DELETED database table???? HELP
    By staceyx in forum General Questions
    Replies: 5
    Last Post: 24 May 2009, 06:31 AM
  5. Replies: 3
    Last Post: 12 Dec 2008, 06:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg