Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2005
    Posts
    106
    Plugin Contributions
    0

    Default Disable Category Sidebox on all but one ezpage

    Is there a way to disable the category sidebox on all ezpages except for one? I would use the disable left column option in the admin, but I have other sideboxes that need to stay there.

    I have disabled the category sidebox on the homepage and other selected pages by editing the sidebox.php file in modules, but am lost about this issue.

    Thanks

  2. #2
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: Disable Category Sidebox on all but one ezpage

    Quote Originally Posted by CyberWoolf View Post
    Is there a way to disable the category sidebox on all ezpages except for one? I would use the disable left column option in the admin, but I have other sideboxes that need to stay there.

    I have disabled the category sidebox on the homepage and other selected pages by editing the sidebox.php file in modules, but am lost about this issue.

    Thanks
    C,
    Check this out:

    https://www.zen-cart.com/tutorials/i...hp?article=249
    Mark
    Hare Do

  3. #3
    Join Date
    Oct 2005
    Posts
    106
    Plugin Contributions
    0

    Default Re: Disable Category Sidebox on all but one ezpage

    Awesome thanks... :-D See what happens when I just search the forums? I always forget about those :-(

  4. #4
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: Disable Category Sidebox on all but one ezpage

    C,
    You are most welcome, glad I could point you in the right direction..
    Mark
    Hare Do

  5. #5
    Join Date
    Oct 2005
    Posts
    106
    Plugin Contributions
    0

    Default Re: Disable Category Sidebox on all but one ezpage

    Actually it didnt work for me. They still show up on every ezpage

    Code:
       $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();
        }
     if (!isset($ez_page_id) || !in_array($ezpage_id,explode(",",'2,5'))) {
        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);
     }
    ?>

  6. #6
    Join Date
    Jun 2007
    Location
    Michigan
    Posts
    187
    Plugin Contributions
    0

    Default Re: Disable Category Sidebox on all but one ezpage

    Thanks for the Link (though it's a year old...LOL)
    Solved my problem quickly
    It worked PERFECTLY



    Quote Originally Posted by haredo View Post

  7. #7
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: Disable Category Sidebox on all but one ezpage

    Lj,
    You are most welcome, neat little feature so a neat custom look for your site...
    Mark
    Hare Do

 

 

Similar Threads

  1. v138a Disable Product Images in one TOP category to affect all subcategories
    By sbbemn in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 17 Jul 2012, 10:36 PM
  2. Disable My Account sidebox, but keep Login sidebox??
    By Upsiaus in forum Basic Configuration
    Replies: 2
    Last Post: 11 Oct 2011, 11:07 PM
  3. Replies: 10
    Last Post: 5 Aug 2011, 09:59 AM
  4. Disable a Specific Sidebox on Just One Specific EZPage
    By limelites in forum Basic Configuration
    Replies: 1
    Last Post: 23 Feb 2009, 03:22 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR