Results 1 to 10 of 10
  1. #1
    Join Date
    May 2004
    Location
    Nathalie,Virginia
    Posts
    90
    Plugin Contributions
    0

    Default how to remove category box from just one page?

    I have define page 2 turned on but I want to remove the category box from the page is it possible?

    I tried using the ideas offered here http://www.zen-cart.com/forum/showthread.php?t=53574

    and changing the "index" to "page2" but it's not working (it's didn't work when i used index either)

    however if i used the suggestion in post #7 of the above referenced thread if ($this_is_home_page) {

    then it worked BUT i need it for page 2 not the home page .. can anyone tell me what to change the "this is home page" to read so that it works on the page 2? also i just want to remove the boxes I don't want the center text to move over to the left side as it did

    here is the site link if you should need it
    www.gourmet-foods-inc.com (page2 is the one under more info named certified organic/all natural)

    Thank you,
    Noneya
    Age is a question of Mind over Matter,
    If you don't Mind, it don't matter!

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: how to remove category box from just one page?

    Quote Originally Posted by Noneya99 View Post
    I have define page 2 turned on but I want to remove the category box from the page is it possible?

    I tried using the ideas offered here http://www.zen-cart.com/forum/showthread.php?t=53574

    and changing the "index" to "page2" but it's not working (it's didn't work when i used index either)

    however if i used the suggestion in post #7 of the above referenced thread if ($this_is_home_page) {

    then it worked BUT i need it for page 2 not the home page .. can anyone tell me what to change the "this is home page" to read so that it works on the page 2? also i just want to remove the boxes I don't want the center text to move over to the left side as it did

    here is the site link if you should need it
    www.gourmet-foods-inc.com (page2 is the one under more info named certified organic/all natural)

    Thank you,
    Noneya
    Take time to read this tutorial..

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

  3. #3
    Join Date
    May 2004
    Location
    Nathalie,Virginia
    Posts
    90
    Plugin Contributions
    0

    Default Re: how to remove category box from just one page?

    well apparently some sleep helped.. i just realized the code wasn't working from the other thread b/c i was putting "page2" and not "page_2"

    now i have to figure out away to stop it from shifting left when the column is turned off
    Age is a question of Mind over Matter,
    If you don't Mind, it don't matter!

  4. #4
    Join Date
    Jul 2007
    Location
    Roseville, Michigan
    Posts
    188
    Plugin Contributions
    0

    Default Re: how to remove category box from just one page?

    Quote Originally Posted by haredo View Post
    I looked at this tutorial, but I didn't see how I would set it up so the category sidebox would not show up on the checkout_shipping page.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: how to remove category box from just one page?

    You could customize the categories sidebox by customizing the module to have something like this:
    PHP Code:
    if ($_GET['main_page'] == FILENAME_CHECKOUT_SHIPPING) {
      
    $show_categories_box false;
    } else {
      
    $show_categories_box true;
    }

      if (
    $show_categories_box) {
        
    $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);
      } 
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Jul 2007
    Location
    Roseville, Michigan
    Posts
    188
    Plugin Contributions
    0

    Default Re: how to remove category box from just one page?

    What would I do if I want to do this to more than one page? (checkout_shipping, checkout_payment, and checkout_confirmation)

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

    Default Re: how to remove category box from just one page?

    PHP Code:
    if ($_GET['main_page'] == FILENAME_CHECKOUT_SHIPPING or $_GET['main_page'] == FILENAME_CHECKOUT_PAYMENT or $_GET['main_page'] == FILENAME_CHECKOUT_CONFIRMATION ) { 

  8. #8
    Join Date
    Jul 2007
    Location
    Roseville, Michigan
    Posts
    188
    Plugin Contributions
    0

    Default Re: how to remove category box from just one page?

    Thank you for your help. That worked great.

  9. #9
    Join Date
    Jul 2007
    Location
    Roseville, Michigan
    Posts
    188
    Plugin Contributions
    0

    Default Re: how to remove category box from just one page?

    What would I do if I want the reverse? I want a side box to only show up on certain pages.

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: how to remove category box from just one page?

    Same thing but switch the true and false around ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Trying to remove header for just one sidebar box
    By strugglingnovice in forum General Questions
    Replies: 2
    Last Post: 20 Sep 2011, 06:53 PM
  2. remove category side box from main page
    By thunder2010 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 16 Mar 2011, 09:35 AM
  3. how to remove category box from just one page?
    By INeedLove in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Jun 2009, 06:41 PM
  4. How do I remove the heading from just one Sidebox?
    By bizshop1 in forum Basic Configuration
    Replies: 5
    Last Post: 5 May 2009, 05:21 AM
  5. How to remove category display from center box
    By chrisrub in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 9 May 2008, 01:14 AM

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