Page 13 of 19 FirstFirst ... 31112131415 ... LastLast
Results 121 to 130 of 189
  1. #121
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: Show/Hide sideboxes based on page

    kezan98,

    There's an easy CSS fix on this thread:
    https://www.zen-cart.com/forum/showthread.php?t=76543

  2. #122
    Join Date
    Nov 2007
    Location
    UK
    Posts
    102
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Thanks Jackie

    It worked for the first checkout page
    PHP Code:
    #checkoutshippingBody  #shoppingcart, #bannerbox, #reviews, #ezpages {display:none;} 
    but if I try to duplicate it for the pages that follow it does random things like show the shopping cart side box but push it all the way down to the bottom of the coloumn.

  3. #123
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: Show/Hide sideboxes based on page

    The code should be as follows:

    HTML Code:
    #checkoutshippingBody #shoppingcart, #checkoutshippingBody #bannerbox, #checkoutshippingBody #reviews, #checkoutshippingBody #ezpages {display:none;}
    otherwise, you call on the boxes in general, not specifically ones on the checkout page.

  4. #124
    Join Date
    Nov 2007
    Location
    UK
    Posts
    102
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Thanks

    I think I've got it fixed bar a box that sits at the bottom of the coloumn but I'm not to bothered about that. Thanks you everyone who's helped me out today.

    Kerrie

  5. #125
    Join Date
    Dec 2006
    Posts
    79
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Is there a way I can turn off a right sidebox for just one particular ez-page?

    Many thanks,
    Neil

  6. #126
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Show/Hide sideboxes based on page

    Quote Originally Posted by neilg View Post
    Is there a way I can turn off a right sidebox for just one particular ez-page?

    Many thanks,
    Neil
    This tutorial may help:

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

  7. #127
    Join Date
    Dec 2006
    Posts
    79
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Thanks so much Frank...the ability to do that right in admin makes life so easy!

    Much appreciated!

  8. #128
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Show/Hide sideboxes based on page

    Quote Originally Posted by neilg View Post
    Thanks so much Frank...the ability to do that right in admin makes life so easy!

    Much appreciated!
    My pleasure

  9. #129
    Join Date
    Apr 2010
    Posts
    102
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Quote Originally Posted by Ajeh View Post
    Just curious ... are you trying to turn off individual sideboxes or are you trying to turn off columns?

    These variables and their values:
    $flag_disable_left = true;
    $flag_disable_right = true;

    are used to control the left and right columns ... and, when placed correctly in the code the whole column will turn off ...

    If you want to turn off individual sideboxes, look at how the featured.php sidebox module is written where you see:
    Code:
    // test if box should display
      $show_featured= true;
    
      if ($show_featured == true) {
    currently, nothing "controls" or changes that sidebox but the code is there so that you "could" change when this shows such as only show the sidebox when on the main page:
    Code:
    // test if box should display
      $show_featured= true;
    
    if (!$this_is_home_page) {
      $show_featured= false;
    }
      if ($show_featured == true) {
    Notice on this sidebox how the IF statement surrounds the whole code ...

    Any sidebox where this type of IF does not exist, you can set it up yourself to have similar logic ...
    How can I duplicate this logic for "categories sidebox" to turn the categories sidebox off on main page? I tried this on other sideboxes and they all work. but I don't know what should I use in category.php file. I used show_categories = fales; but it did not work.

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

    Default Re: Show/Hide sideboxes based on page

    You can customize the categories sidebox by using your templates and overrides for:
    // test if box should display
    $show_categories= true;

    if ($this_is_home_page) {
    $show_categories= false;
    }


    if ($show_categories == true) {
    $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);
    }
    ?>
    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: v1.5.5]
    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!

 

 
Page 13 of 19 FirstFirst ... 31112131415 ... LastLast

Similar Threads

  1. v150 Any way to show/hide payment modules dynamically based on order total?
    By Limitless in forum Addon Payment Modules
    Replies: 2
    Last Post: 27 Sep 2012, 03:22 PM
  2. Show/Hide INformation Sidebox based on page
    By atracksler in forum Basic Configuration
    Replies: 12
    Last Post: 17 Jun 2011, 04:21 PM
  3. Show/Hide sideboxes based on page
    By monkeyjr47906 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 29 Nov 2007, 07:25 PM
  4. Hide sideboxes on main page
    By disciple in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 11 Jan 2007, 07:38 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