Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2010
    Posts
    243
    Plugin Contributions
    5

    Default Help hiding a sidebox from certain pages

    hi,

    i want to hide my categories sidebox on manufacturers pages, but I do not know how and I have failed.

    I use this from Ajeh's posts to hide it on Define Pages,

    PHP Code:
     //BOF PART 1 OF 2 FOR CAT SIDEBOX OFF ON SOME PAGES
    $show_categories true
        if (
    in_array($_GET['main_page'], array(FILENAME_LOGOFFFILENAME_LOGINFILENAME_PRIVACYFILENAME_CONTACT_USFILENAME_CONDITIONSFILENAME_SHIPPINGFILENAME_CREATE_ACCOUNTFILENAME_UNSUBSCRIBEFILENAME_SITE_MAP))) { 
          
    $show_categories false
        } else { 
          
    $show_categories true
        } 

    if (
    $show_categories == true) { //EOF PART 1 OF 2 FOR CAT SIDEBOX OFF ON SOME PAGES
    //OTHER CODE
    //BOF 2 OF 2 FOR CAT SIDEBOX OFF ON SOME PAGES 
    }
    //EOF 2 OF 2 FOR CAT SIDEBOX OFF ON SOME PAGES 
    But adding FILENAME_MANUFACTURERS or FILENAME_MANUFACTURERS_ID to the list does not work. So I am guessing something else needs to be done???

    hope someone can help me?
    TIA
    Last edited by ray-the-otter; 18 Apr 2013 at 11:35 AM.

  2. #2
    Join Date
    Jul 2010
    Posts
    243
    Plugin Contributions
    5

    Default Re: Help hiding a sidebox from certain pages

    I also use this (another of Ajeh's posts)

    PHP Code:
     if (!isset($ezpage_id) || !in_array($ezpage_id,explode(",",'1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35'))) {
        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); 
    But swapping $ezpage_id for $manufacturers_id does not work either??

    (I must point out that I really don't know what I am doing)
    Last edited by ray-the-otter; 18 Apr 2013 at 11:41 AM.

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

    Default Re: Help hiding a sidebox from certain pages

    You are using the second bit in the categories sidebox module file, right?
    Try something like
    PHP Code:
     if (!isset($_GET['manufacturers_id']) ) { 
    to test if it is in the URL, and only display if not.

  4. #4
    Join Date
    Jul 2010
    Posts
    243
    Plugin Contributions
    5

    Default Re: Help hiding a sidebox from certain pages

    Hi, sorry for the late reply. nope, I couldn't get it to work. I know it is something I am doing wrong, but what exactly escapes me. lol

 

 

Similar Threads

  1. v151 Hiding certain product from menu
    By sports guy in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 11 Apr 2013, 05:28 AM
  2. v150 Help with hiding shipping options when posting to certain countries
    By daffo084 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 31 Aug 2012, 12:03 PM
  3. v150 WHATS NEW CATAGORY HELP .. hiding certain products
    By jgirl5799 in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 6 Aug 2012, 02:32 AM
  4. Hiding subcat from category sidebox
    By Tim M in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 5 Jan 2009, 11:51 PM
  5. Sidebox content on certain pages
    By nick04263 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Mar 2007, 03:12 PM

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