Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25
  1. #21
    Join Date
    Feb 2009
    Posts
    210
    Plugin Contributions
    0

    Default Re: Remove or Disable Left Column on Login and Checkout Pages

    Quote Originally Posted by limelites View Post
    I'm pretty sure this should work then:

    PHP Code:
       if ($current_category_id == or $current_category_id == or $current_category_id == or $current_category_id == or $current_category_id == or $current_category_id == 99 or $current_category_id == 119 or $current_category_id == 121 or $current_category_id == 128 or $current_category_id == 122 or $current_category_id == 123 or $current_category_id == 127 or $current_category_id == 120 or $current_category_id == 100 or $current_category_id == 101) {

    $flag_disable_left true
    Basically, as soon as you browse to any of the sub categories above, your left sidebox would disable.
    Yes that works like a charm.

    You have been a really great help as i wouldn't have been able to figure that one out even with reading the forums help sections.

    Thanks very much.

  2. #22
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Remove or Disable Left Column on Login and Checkout Pages

    I'm glad to have helped, that's what this forum/community is about. If you're stuck with something, just open a new thread and someone will usually help.

  3. #23
    Join Date
    Aug 2008
    Posts
    30
    Plugin Contributions
    0

    Default Re: Remove or Disable Left Column on Login and Checkout Pages

    Very pleased with the ability to turn off left and right sideboxes during the account creation and checkout.

    Thanks

  4. #24
    Join Date
    Aug 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: Remove or Disable Left Column on Login and Checkout Pages

    thank you very much for the post....I was/am having the same issue where I'm trying to hide the left column on some pages only.....I'm using zencart ver: 1.3.8a

    At this point, I've got the left column hidden for the Home page using this code in MYTEMPLATE/common/tpl_main_page.php

    // remove left column from the home page
    if ($this_is_home_page) {
    $flag_disable_left = true;
    }

    I also added the following code posted in this thread to remove the left column from all other pages.... it works for login,account,create_amount.....but the left column still appears on Checkout pages, contact us, and about us???

    if (in_array($current_page_base,explode(",",'login,checkout,account,create_account, contact_us,about_us')) ) {
    $flag_disable_left = true;
    }

    if (in_array($current_page_base,explode(",",'login,account')) ) {
    $flag_disable_footer = true;
    }

    if (in_array($current_page_base,explode(",",'login')) ) {
    $flag_disable_header = true;
    }

    if ($current_page_base == 'shopping_cart' && $_SESSION['cart']->count_contents() > 0 ) {
    $flag_disable_left = true;
    }

    Any thoughts why this code would not work for the above mentioned pages?

    Also, does anyone know where I can find a reference for how to determine the proper page names to be used as arguments? i.e. about_us as opposed to AboutUs

    thanks in advance.

    jon

  5. #25
    Join Date
    Aug 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: Remove or Disable Left Column on Login and Checkout Pages

    UPDATE: Ok, I've figured out why the code didn't work on contact us, about us etc... it's because they are EZ-Pages.... That said, it makes it easier to supress the column....just in case someone else comes across the same issue, here's how it was resolved:

    In the ZC Admin panel.... click on Configuration > EZ Page Setings > EZ-Pages Pages to disable left-column

    then you need to list the page ids of the pages that you do NOT want to display the normal "left" column (of sideboxes) for your site.

    Simply list page ID numbers separated by commas with no spaces. Page ID numbers can be obtained from the EZ-Pages screen under Admin->Tools. ie: 21 or leave blank.

    1 down, 1 to go... I still can't figure out why the checkout page still shows the left column.... I'll create a new post for this....

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. EZ Pages Disable Left Column / Full Width Question
    By Trout Mask in forum Customization from the Admin
    Replies: 11
    Last Post: 10 Jun 2012, 02:11 PM
  2. Remove Left Column and add images on right column
    By steve Nezia in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 13 Jun 2011, 03:40 PM
  3. Remove Breadcrumbs from Login, Shopping Cart and Checkout Pages
    By limelites in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 25 Apr 2009, 07:17 PM
  4. disable column on left during checkout
    By ryanb4614 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 Apr 2009, 05:07 AM
  5. Can I disable left column on some product pages?
    By KiwiBrian in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Aug 2008, 03:42 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