Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Posts
    33
    Plugin Contributions
    0

    Default Turn off side-boxes in checkout

    Was wondering...is there a way in admin to turn off the sideboxes just during the checkout process? The idea is to keep customers from getting distracted and on-track with the purchase. I'm sure I can modify the templates but would rather not if I can avoid it.

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

    Default Re: Turn off side-boxes in checkout

    This takes a very small mod to /includes/templates/your_template/common/tpl_main_page.php.
    Find this at the top of the file
    PHP Code:
    // the following IF statement can be duplicated/modified as needed to set additional flags
      
    if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
        
    $flag_disable_right true;
      } 
    and change to
    PHP Code:
    // the following IF statement can be duplicated/modified as needed to set additional flags
      
    if (in_array($current_page_base,explode(",",'checkout_shipping,checkout_payment,checkout_success')) ) {
        
    $flag_disable_left true;
        
    $flag_disable_right true;
      } 
    Look at the page names in your address bar to verify that their names are checkout_shipping,checkout_payment,checkout_success; alter the explode content if necessary.

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Turn off side-boxes in checkout

    Quote Originally Posted by eflat View Post
    Was wondering...is there a way in admin to turn off the sideboxes just during the checkout process? The idea is to keep customers from getting distracted and on-track with the purchase. I'm sure I can modify the templates but would rather not if I can avoid it.
    Glen's suggestion is the most appropriate method, and is simple to undertake.

    I tend to agree with your idea of removing "distractions" from the checkout pages, so this is a sensible move.
    20 years a Zencart User

  4. #4
    Join Date
    Jul 2011
    Location
    Glasgow, Scotland
    Posts
    113
    Plugin Contributions
    1

    Default Re: Turn off side-boxes in checkout

    Thank you for this advice and information. It was just what I needed.

 

 

Similar Threads

  1. turn off just one or two side boxes for certain pages?
    By fredmccay in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 30 Mar 2011, 06:30 PM
  2. Turn off side boxes during checkout?
    By Makoshark in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 15 Jun 2009, 10:09 AM
  3. turn off side columns on home page (code example)
    By kiddo in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 9 Feb 2007, 03:59 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