Page 1 of 3 123 LastLast
Results 1 to 10 of 26
  1. #1
    Join Date
    Jan 2010
    Posts
    37
    Plugin Contributions
    0

    Default turning off sideboxes on checkout pages

    can some one please help me.

    i have foolishly decided i want to turn off ALL sideboxes on the 3 checkout pages (shipping, billing, confirmation)

    i have read the forum for around 4 hours and cannot get my head round how to do it.

    i have literally followed all the information to the letter bu i still cant do it.

    can someone please please give me a complete idiots guide on how to do this as i am really geting mad with it now and almost given up on the idea.
    THnk you so much
    The man with a million passwords.

  2. #2
    Join Date
    Jan 2010
    Posts
    37
    Plugin Contributions
    0

    Default Re: turning off sideboxes on checkout pages

    Quote Originally Posted by GRRB View Post
    can some one please help me.

    i have foolishly decided i want to turn off ALL sideboxes on the 3 checkout pages (shipping, billing, confirmation)

    i have read the forum for around 4 hours and cannot get my head round how to do it.

    i have literally followed all the information to the letter bu i still cant do it.

    can someone please please give me a complete idiots guide on how to do this as i am really geting mad with it now and almost given up on the idea.
    THnk you so much
    i think my first problem is that i do not know how to make an over ride file for tpl_main_page.php am i on the right tracks here?
    The man with a million passwords.

  3. #3
    Join Date
    Apr 2010
    Location
    Seattle, WA
    Posts
    45
    Plugin Contributions
    0

    Default Re: turning off sideboxes on checkout pages

    Open tpl_main:
    /public_html/includes/templates/yourtemplate/common/tpl_main_page.php

    Find this line of code near the top

    if (in_array($current_page_base,explode(",",'ENTER YOUR PAGE HERE')) ) {
    $flag_disable_left = true;
    }

    You can disable the left or right columns by changing the flag_disable. Enter teh pages you need to disable it on, for instance "shopping_cart" or "checkout", commas in between with no spaces.

    Zen Cart Help
    www.zencartcodeanddesign.com

  4. #4
    Join Date
    Jan 2010
    Posts
    37
    Plugin Contributions
    0

    Default Re: turning off sideboxes on checkout pages

    Quote Originally Posted by Branden View Post
    Open tpl_main:
    /public_html/includes/templates/yourtemplate/common/tpl_main_page.php

    Find this line of code near the top

    if (in_array($current_page_base,explode(",",'ENTER YOUR PAGE HERE')) ) {
    $flag_disable_left = true;
    }

    You can disable the left or right columns by changing the flag_disable. Enter teh pages you need to disable it on, for instance "shopping_cart" or "checkout", commas in between with no spaces.

    Zen Cart Help
    www.zencartcodeanddesign.com
    Thanks for the reply, i have already done this and nothing has changed at all.

    do i need to move the edited tpl_main_page.php somewhere else after i have finished?

    My Includes/templates/MYOWNTEMPLATE/common/tpl_main_pge.php
    now looks like this :

    if (in_array($current_page_base,explode(",",'checkout_payment')) ) {
    $flag_disable_left = true;

    ihave read somewhere that I y need to change flag values in admin or something??way over my head at this point

    any more suggestion ??
    thankyouuuu x
    }
    The man with a million passwords.

  5. #5
    Join Date
    Apr 2010
    Location
    Seattle, WA
    Posts
    45
    Plugin Contributions
    0

    Default Re: turning off sideboxes on checkout pages

    no, that is the correct folder. looks correct, I would have to check the whole file.
    Last edited by Branden; 25 Apr 2010 at 07:46 PM.

  6. #6
    Join Date
    Jan 2010
    Posts
    37
    Plugin Contributions
    0

    Default Re: turning off sideboxes on checkout pages

    <?php
    /**
    * Common Template - tpl_main_page.php
    *
    * Governs the overall layout of an entire page<br />
    * Normally consisting of a header, left side column. center column. right side column and footer<br />
    * For customizing, this file can be copied to /templates/your_template_dir/pagename<br />
    * example: to override the privacy page<br />
    * - make a directory /templates/my_template/privacy<br />
    * - copy /templates/templates_defaults/common/tpl_main_page.php to /templates/my_template/privacy/tpl_main_page.php<br />
    * <br />
    * to override the global settings and turn off columns un-comment the lines below for the correct column to turn off<br />
    * to turn off the header and/or footer uncomment the lines below<br />
    * Note: header can be disabled in the tpl_header.php<br />
    * Note: footer can be disabled in the tpl_footer.php<br />
    * <br />
    * $flag_disable_header = true;<br />
    * $flag_disable_left = true;<br />
    * $flag_disable_right = true;<br />
    * $flag_disable_footer = true;<br />
    * <br />
    * // example to not display right column on main page when Always Show Categories is OFF<br />
    * <br />
    * if ($current_page_base == 'index' and $cPath == '') {<br />
    * $flag_disable_right = true;<br />
    * }<br />
    * <br />
    * example to not display right column on main page when Always Show Categories is ON and set to categories_id 3<br />
    * <br />
    * if ($current_page_base == 'index' and $cPath == '' or $cPath == '3') {<br />
    * $flag_disable_right = true;<br />
    * }<br />
    *
    * @package templateSystem
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: tpl_main_page.php 3856 2006-06-29 02:26:33Z drbyte $
    */

    // 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,che ckout_confirmation')) ) {
    $flag_disable_right = true;
    $flag_disable_left = true;
    }


    $header_template = 'tpl_header.php';
    $footer_template = 'tpl_footer.php';
    $left_column_file = 'column_left.php';
    $right_column_file = 'column_right.php';
    $body_id = str_replace('_', '', $_GET['main_page']);
    ?>
    <body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
    <table width="770" border="0" cellpadding="0" cellspacing="0" style="background-color:#D6D7BA " align="center">
    <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td bgcolor="#D6D7BA"><div align="center">
    <table width="87%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="99" class="txt_content">Choose Language:</td>
    <td>
    <?php require(DIR_WS_TEMPLATE .('modules/languages.php')); ?>
    </td>
    </tr>
    </table>
    </div></td>
    <td width="269" bgcolor="#D6D7BA"><table width="90%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="68" class="txt_content">Currencies:</td>
    <td>
    <?php require(DIR_WS_TEMPLATE .('modules/currencies.php')); ?>
    </td>
    </tr>
    </table></td>
    <td width="218"><div align="right"><img src="<? echo DIR_WS_TEMPLATE; ?>images/img_home1.gif" alt="Our Address" width="294" height="47"/></div></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td><img src="<? echo DIR_WS_TEMPLATE; ?>images/img_home2.gif" alt="" width="342" height="234"/></td>
    <td><img src="<? echo DIR_WS_TEMPLATE; ?>images/logo.gif" alt="" width="210" height="234"/></td>
    <td width="218" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td><img src="<? echo DIR_WS_TEMPLATE; ?>images/img_home3.gif" alt="" width="218" height="55"/></td>
    </tr>
    <tr>
    <td><a href="index.php"><img src="<? echo DIR_WS_TEMPLATE; ?>images/btn_home.gif" alt="Home" width="218" height="34" border="0"/></a></td>
    </tr>
    <tr>
    <td><a href="index.php?main_page=products_new"><img src="<? echo DIR_WS_TEMPLATE; ?>images/btn_newproducts.gif" alt="New Products" width="218" height="31" border="0"/></a></td>
    </tr>
    <tr>
    <td><a href="index.php?main_page=login"><img src="<? echo DIR_WS_TEMPLATE; ?>images/btn_myaccount.gif" alt="My Account" width="218" height="31" border="0"/></a></td>
    </tr>
    <tr>
    <td><a href="index.php?main_page=shopping_cart"><img src="<? echo DIR_WS_TEMPLATE; ?>images/btn_shoppingcart.gif" alt="Shopping Cart" width="218" height="29" border="0"/></a></td>
    </tr>
    <tr>
    <td><a href="index.php?main_page=contact_us"><img src="<? echo DIR_WS_TEMPLATE; ?>images/btn_contactus.gif" alt="Contact Us" width="218" height="39" border="0"/></a></td>
    </tr>
    <tr>
    <td height="15" bgcolor="#D6D7BA"><img src="<? echo DIR_WS_TEMPLATE; ?>images/trans.gif" alt="" width="1" height="1"/></td>
    </tr>
    </table></td>
    </tr>
    </table></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="189" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td><img src="<? echo DIR_WS_TEMPLATE; ?>images/img_menu1.gif" alt="" width="189" height="10"/></td>
    </tr>
    <tr>
    <td style="background-color:#dde091; "><table width="100%" border="0" cellspacing="0" cellpadding="0" >
    <tr>
    <td style="width:182px; ">
    <?php require(DIR_WS_TEMPLATE .('modules/column_left.php')); ?>
    </td>
    <td width="7" class="bg_shadow"><img src="<? echo DIR_WS_TEMPLATE; ?>images/trans.gif" alt="" width="7" height="8"/></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><img src="<? echo DIR_WS_TEMPLATE; ?>images/img_cornerbottom1.gif" alt="" width="189" height="18"/></td>
    </tr>
    </table></td>
    <td valign="top" bgcolor="#D6D7BA"><table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td ><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#B4BB5C">
    <tr>
    <td width="14"><img src="<? echo DIR_WS_TEMPLATE; ?>images/img_corner1.gif" alt="" width="14" height="60"/></td>
    <td width="126"><table width="90%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="12"><img src="<? echo DIR_WS_TEMPLATE; ?>images/arrow.gif" alt="" width="12" height="6"/></td>
    <td class="txt_content"><a href="index.php?main_page=specials">Specials</a></td>
    </tr>
    <?php if ($_SESSION['customer_id']) { ?>
    <tr>
    <td><img src="<? echo DIR_WS_TEMPLATE; ?>images/arrow.gif" alt="arrow" width="12" height="6"/></td>
    <td class="txt_content"><a href="index.php?main_page=create_account">Logout</a></td>
    </tr>
    <? } else { ?>
    <tr>
    <td><img src="<? echo DIR_WS_TEMPLATE; ?>images/arrow.gif" alt="arrow" width="12" height="6"/></td>
    <td class="txt_content"><a href="index.php?main_page=create_account">Create
    Account</a></td>
    </tr>
    <tr>
    <td><img src="<? echo DIR_WS_TEMPLATE; ?>images/arrow.gif" alt="arrow" width="12" height="6"/></td>
    <td class="txt_content"><a href="index.php?main_page=login">Customer
    Login</a></td>
    </tr>
    <? } ?>
    </table></td>
    <td width="1"><img src="<? echo DIR_WS_TEMPLATE; ?>images/img_line.gif" alt="img_line" width="1" height="49"/></td>
    <td width="197"><table width="78%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td width="44"><img src="<? echo DIR_WS_TEMPLATE; ?>images/img_icon.gif" alt="img_icon" width="34" height="34"/></td>
    <td class="txt_content01">Your Shopping Cart
    in your cart
    <?php require(DIR_WS_TEMPLATE .('modules/shopping_cart.php')); ?>
    ITEMS</td>
    </tr>
    </table></td>
    <td width="1"><img src="<? echo DIR_WS_TEMPLATE; ?>images/img_line.gif" alt="img_line" width="1" height="49"/></td>
    <td><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>


    </tr>
    <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td style="width:100%; ">
    <?php require(DIR_WS_TEMPLATE .('modules/search.php')); ?>
    </td>
    </tr>
    </table></td>
    </tr>
    </table></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td height="7"><img src="<? echo DIR_WS_TEMPLATE; ?>images/trans.gif" alt="trans" width="1" height="1"/></td>
    </tr>
    <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="14"><img src="<? echo DIR_WS_TEMPLATE; ?>images/img_corner2.gif" alt="img_corner" width="14" height="25"/></td>
    <td bgcolor="#FF9C00" class="txt_content02"><?php echo HEADING_TITLE; ?></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td height="10"><img src="<? echo DIR_WS_TEMPLATE; ?>images/trans.gif" alt="trans" width="1" height="1"/></td>
    </tr>
    <tr>
    <td valign="top">
    <table cellpadding="0" cellspacing="0" border="0" style="width:100%; ">
    <tr>
    <td style="vertical-align:top; width:100%; ">
    <?php if (DEFINE_BREADCRUMB_STATUS == '1') { ?>
    <?php } ?>
    <!-- eof breadcrumb -->
    <?php
    if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
    if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
    }
    }
    ?>
    <!-- bof upload alerts -->
    <?php if ($messageStack->size('upload') > 0) echo $messageStack->output('upload'); ?>
    <!-- eof upload alerts -->
    <?php
    /**
    * prepares and displays center column
    *
    */
    require($body_code); ?>
    <?php
    if (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {
    if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerFour" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
    }
    }
    ?>
    </td>
    <?php
    if (COLUMN_RIGHT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) {
    // global disable of column_right
    $flag_disable_right = true;
    }
    if (!isset($flag_disable_right) || !$flag_disable_right) {
    ?>
    <td style="vertical-align:top; width:100%; "><?php require(DIR_WS_TEMPLATE .('modules/column_right.php')); ?></td>
    <?php
    }
    ?>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    </tr>
    </table></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#D6D7BA">
    <tr>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td height="30" bgcolor="#B4BB5C" class="txt_content04">&nbsp;&nbsp;&nbsp;<font color="#FFFFFF"><a href="index.php?main_page=shippinginfo"><font color="#FFFFFF">Shipping
    &amp; Returns</font></a> | <a href="index.php?main_page=privacy"><font color="#FFFFFF">Privacy
    Notice</font></a> | <a href="index.php?main_page=conditions"><font color="#FFFFFF">Conditions of
    Use</font></a> | <a href="index.php?main_page=contact_us"><font color="#FFFFFF">Contact Us</font></a>
    | <a href="index.php?main_page=specials"><font color="#FFFFFF">Specials</font></a> | <a href="index.php?main_page=reviews"><font color="#FFFFFF">Reviews</font></a></font></td>
    </tr>
    <tr>
    <td height="30" class="txt_content05">&nbsp;&nbsp;&nbsp;Designed & Maintained By The Gwynedd Gadgets Team - We Hope You Enjoy Your Shopping Experience With Us - Thank You Very Much For Your Custom!<div style="float: right "><img src="images/ssllogo.gif" alt="this site is secured by equifax, giving you confidence when you shop online!" title=" This Site Is Secured By Equifax, Giving You Confidence To Shop Online " width="104" height="37" /></div> <div style="float: right"><img src="images/footer-payment-cards.gif" alt="this site is secured by equifax, giving you confidence when you shop online!" title=" Payment Method " width="473" height="37" /></div><div style="float: right"><img src="images/footergg.gif" alt="this site is secured by equifax, giving you confidence when you shop online!" title=" Gwynedd Gadgets " width="180" height="37" /></div></td>
    </tr>
    </table></td>
    </tr>
    </table></body>
    The man with a million passwords.

  7. #7
    Join Date
    Apr 2010
    Location
    Seattle, WA
    Posts
    45
    Plugin Contributions
    0

    Default Re: turning off sideboxes on checkout pages

    ",'checkout_shipping,checkout_payment,che ckout_confirmation')) ) {

    looks you have a space between che ckout_confirmation


    Zen Cart Consulting
    Last edited by Branden; 25 Apr 2010 at 08:18 PM. Reason: sig not showing

  8. #8
    Join Date
    Jan 2010
    Posts
    37
    Plugin Contributions
    0

    Default Re: turning off sideboxes on checkout pages

    Quote Originally Posted by Branden View Post
    ",'checkout_shipping,checkout_payment,che ckout_confirmation')) ) {

    looks you have a space between che ckout_confirmation


    Zen Cart Consulting
    Just cheked and there is no space their.
    must be the way i copy and pasted into here
    any other suggestions :/
    thanks again for being so helpful
    The man with a million passwords.

  9. #9
    Join Date
    Apr 2010
    Location
    Seattle, WA
    Posts
    45
    Plugin Contributions
    0

    Default Re: turning off sideboxes on checkout pages

    I would try this:

    if (in_array($current_page_base,explode(",",'checkout_shipping,checkout_payment,che ckout_confirmation')) ) {
    $flag_disable_right = true;
    }

    if (in_array($current_page_base,explode(",",'checkout_shipping,checkout_payment,che ckout_confirmation')) ) {
    $flag_disable_left = true;
    }

    If that doesn't work try adding it to the effected file directly.

    Zen Cart Consulting

  10. #10
    Join Date
    Apr 2010
    Location
    Seattle, WA
    Posts
    45
    Plugin Contributions
    0

    Default Re: turning off sideboxes on checkout pages

    If that doesn't work I can login and try myself if you would like.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Turning off all sideboxes
    By willwright111 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Sep 2010, 12:26 PM
  2. Turning off sideboxes
    By rcj79 in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 31 Jul 2010, 07:50 PM
  3. Turning off specific sideboxes
    By charms in forum General Questions
    Replies: 3
    Last Post: 6 Apr 2009, 06:02 PM
  4. Turning off price in sideboxes
    By Green333 in forum Basic Configuration
    Replies: 5
    Last Post: 6 Sep 2008, 09:49 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