Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Remove or Disable Left Column on Login and Checkout Pages

    I read recently that the main navigation should be disabled at the checkout pages to minimize 'escape routes'. When I think about it, this makes good sense.

    I've been scouring this forum for the answer but cannot seem to find it.

    I'd like to disable or remove my left column completely when in the login/account or checkout areas.

    Does anyone know how to do this? Is there a simple way to override the global setting?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

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

    I'd like to disable or remove my left column completely when in the login/account or checkout areas.

    Does anyone know how to do this? Is there a simple way to override the global setting?
    Overrides are a versatile tool

    http://www.zen-cart.com/forum/showthread.php?t=120388
    Zen-Venom Get Bitten

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

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

    Hi Kobra,

    I read that thread and as Clyde suggested, I added this:

    PHP Code:
      if (in_array($current_page_base,explode(",",'login,checkout_shipping,checkout_payment,checkout_confirmation,checkout_success')) ) {
      
    $show_blank_sidebox false;
      } 
    to my /includes/modules/sideboxes/blank_sidebox.php

    When I enter a checkout page, login page, etc., it has had no effect? I can still see the left column :-(

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

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

    OK, solved this a different way. Just add the following to /includes/templates/OVERRIDES/common/tpl_main_page.php

    PHP Code:
      if (in_array($current_page_base,explode(",",'login,checkout,shopping_cart')) ) {
      
    $flag_disable_left true;
      } 

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

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

    OK, solved this a different way. Just add the following to /includes/templates/OVERRIDES/common/tpl_main_page.php
    I had not actually read closely what Clyde had posted...but the above is outlined in the tpl_main_page.php....
    If only supressing columns it is the slicker solution....If interested in displaying alternative layout, info, header, footer - the override solution allows this
    Zen-Venom Get Bitten

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

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

    Well, managed to solve it anyway, so it's looking good....

    Just one thing bothering me now, how do I remove banners from main_page=shopping_cart ? I've disable banners from my SSL pages, but this is not an SSL page.

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

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

    Quote Originally Posted by limelites
    Just one thing bothering me now, how do I remove banners from main_page=shopping_cart ? I've disable banners from my SSL pages, but this is not an SSL page.
    Quote Originally Posted by KoBra
    If interested in displaying alternative layout, info, header, footer - the override solution allows this
    Well you would backout what you have done and edit the tpl_main_page.php file commenting or deleting the banner call/code and use this tpl for your checkout process pages via the override system as outlined in the other thread
    Or just for the shoping cart page??
    Last edited by kobra; 6 Apr 2009 at 05:53 PM.
    Zen-Venom Get Bitten

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

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

    Yeah, just for the shopping cart page as this is not SSL whereas all the other checkout and login pages are.

    It might actually be simpler if I could figure out how to make the shopping cart page SSL as that'd take care of it too?

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

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

    OK, getting there now. Just one more thing though.

    I've disabled left column on the main shopping cart page, the login page, the checkout pages and it's all looking good. However, is there a way to enable the left column on the "your cart is empty" page that you're taken to when you delete an item from the cart?

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

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

    I managed to solve this in another way, detailed here.

    However, s_t_e_v_e has also provided a very useful solution (untested) which corrects the wrong coding I was using avove:

    tpl_main_page.php:
    PHP Code:
      if (in_array($current_page_base,explode(",",'login,checkout,account,create_account')) ) {
      
    $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() > ) {
        
    $flag_disable_left true;
      } 
    Knowing s_t_e_v_e this is 99.999999999999999999% sure to work. However, needs testing.

 

 
Page 1 of 3 123 LastLast

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