Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2007
    Location
    Laurinburg, NC
    Posts
    165
    Plugin Contributions
    0

    Default Turn off side boxes during checkout?

    Is there an option to turn off side boxes during check out? Also move the cart contents to the top of the center box header? I would also need a cancel button during check out that would bring the customer back to the index main page?
    I want to have a clean page with no distractions during check out. I found this code but I am not sure how to implement it?
    PHP Code:
    if (in_array($current_page_base,explode(",",'login,checkout_shipping,checkout_payment,checkout_confirmation')) && in_array($column_left_display->fields['layout_box_name'],explode(",",'search_header.php,categories.php,manufacturers.php,whats_new.php,featured.php,specials.php,currencies.php')) ) { 
    // don't do stuff 
    } else { 
    Thanks James

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

    Default Re: Turn off side boxes during checkout

    Ma,
    This might get you thinking on the right track..
    https://www.zen-cart.com/tutorials/i...hp?article=270

  3. #3
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Turn off side boxes during checkout

    Yes... in a nutshell, that is the line to use, and it already exists in:

    includes/templates/template_default/common

    Look around lines 41 to 44

    ...So all you need do is add the pages where you don't want the columns to display.

    Then you duplicate the lines of code, and change:
    $flag_disable_right = true;
    to
    $flag_disable_left = true;

    This will cancel out BOTH side columns when the stated pages are engaged.

    You should then save the edited file to:

    includes/templates/your_template/common

  4. #4
    Join Date
    Jun 2007
    Location
    Laurinburg, NC
    Posts
    165
    Plugin Contributions
    0

    Default Re: Turn off side boxes during checkout

    Thanks. I have got it working and am learning the syntax a little, of PHP. I am Super Happy All I need now is a cancel button, got any ideas on that? or an article I missed? when searching I get so many responses I get lost

  5. #5
    Join Date
    Jun 2007
    Location
    Laurinburg, NC
    Posts
    165
    Plugin Contributions
    0

    Default Re: Turn off side boxes during checkout

    Thought it may be help full to post my resolution check out pages. What I have now is the three steps to the check out pages have no side boxes to distract the custoner.

    the code needs to be added to this path :
    /home /www /shop.nilandsplace.com /camp /includes /templates /NilandCamp /common
    Were NilandCampis my template override, also referred as custom is Zen Cart articles.
    In the file tpl_main_page.php add this code:
    PHP Code:
     if (in_array($current_page_base,explode(",",'checkout_shipping,checkout_payment,checkout_confirmation,checkout_shipping_address'))  ) {
         
    $flag_disable_left true$flag_disable_right true;
      } 
    just above this code:
    PHP Code:
      $header_template 'tpl_header.php';
      
    $footer_template 'tpl_footer.php';
      
    $left_column_file 'column_left.php';
      
    $right_column_file 'column_right.php';
      
    $body_id = ($this_is_main_page) ? 'indexHome' str_replace('_'''$_GET['main_page']);
    ?> 
    Hope this helps
    James Niland
    http://shop.nilandsplace.com/camp/
    Please don't create an account to try it out

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

    Default Re: Turn off side boxes during checkout

    Quote Originally Posted by Makoshark View Post
    All I need now is a cancel button
    ... to cancel what?
    20 years a Zencart User

  7. #7
    Join Date
    Jun 2007
    Location
    Laurinburg, NC
    Posts
    165
    Plugin Contributions
    0

    Default Re: Turn off side boxes during checkout

    I need a cancel button on the three check out pages?

    If any one wants to see my mod's...
    If anyone wants to see this in action I have set up a test account. So please do not create accounts for testing
    You can use this to test. User: [email protected] and the password is test1234
    Here is my website click Nilands Place Campsite
    Have Fun makoshark AKA James

  8. #8
    Join Date
    Sep 2008
    Location
    Los Angeles, CA
    Posts
    82
    Plugin Contributions
    0

    Default Re: Turn off side boxes during checkout

    FYI,

    If you want to turn off the side boxes for ez pages you have to do the same thing but use this script instead:

    if (in_array($ezpage_id,explode(",",'6')) ) {
    $flag_disable_left = true; $flag_disable_right = true;
    }

    NOTE: the number six is the number of your easy page. Just change that number to what ever number ez page you want to have the side boxes turn off.

    Regards,
    Nadia

 

 

Similar Threads

  1. Turn off side-boxes in checkout
    By eflat in forum Addon Sideboxes
    Replies: 3
    Last Post: 23 Aug 2011, 01:42 AM
  2. 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
  3. Replies: 24
    Last Post: 16 Nov 2009, 04:20 PM
  4. Turn Off Sidebox In 1.3.8a during checkout pages Tried A - Z Failed
    By bluedotted in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 19 Oct 2008, 02:23 PM
  5. Turn Off Shopping cart sidebox during checkout pages
    By haredo in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 6 Oct 2007, 06:22 PM

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