Results 1 to 3 of 3

Hybrid View

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

    Default Customizing Guest Checkout

    Need help,

    I installed the guest checkout for a client. Well he wants the option to login as a guest to be at the top, not the bottom. I have setup a test website to experiment with it on so I could figure it out. Then I can transfer it to his site once I figure it out. If you go to this site and add the product to the cart and checkout you will see the checkout screen. http://image-excellence.com/cart/ind...&products_id=1

    Currently the "checkout as a guest is at the bottom" we want it to be at the top. Any idea how to edit this code to make it happen. I keep trying but it doesn't work--I just get a blank screen
    thank you

    tpl_login_default.php


    <?php
    /**
    * Page Template
    *
    * @package templateSystem
    * @copyright Copyright 2003-2007 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_login_default.php 5926 2007-02-28 18:15:39Z drbyte $
    */
    ?>
    <div class="centerColumn" id="loginDefault">

    <h1 id="loginDefaultHeading"><?php echo HEADING_TITLE; ?></h1>

    <?php if ($messageStack->size('login') > 0) echo $messageStack->output('login'); ?>


    <?php if ( USE_SPLIT_LOGIN_MODE == 'True' || $ec_button_enabled) { ?>
    <!--BOF PPEC split login- DO NOT REMOVE-->
    <fieldset class="floatingBox back">
    <legend><?php echo HEADING_NEW_CUSTOMER_SPLIT; ?></legend>
    <?php // ** BEGIN PAYPAL EXPRESS CHECKOUT ** ?>
    <?php if ($ec_button_enabled) { ?>
    <div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION_SPLIT; ?></div>

    <div class="center"><?php require(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/tpl_ec_button.php'); ?></div>
    <hr />
    <?php echo TEXT_NEW_CUSTOMER_POST_INTRODUCTION_DIVIDER; ?>
    <?php } ?>
    <?php // ** END PAYPAL EXPRESS CHECKOUT ** ?>
    <div class="information"><?php echo TEXT_NEW_CUSTOMER_POST_INTRODUCTION_SPLIT; ?></div>

    <?php echo zen_draw_form('create', zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')); ?>
    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CREATE_ACCOUNT, BUTTON_CREATE_ACCOUNT_ALT); ?></div>

    </form>
    </fieldset>

    <fieldset class="floatingBox forward">
    <legend><?php echo HEADING_RETURNING_CUSTOMER_SPLIT; ?></legend>
    <div class="information"><?php echo TEXT_RETURNING_CUSTOMER_SPLIT; ?></div>

    <?php echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>
    <label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>
    <?php echo zen_draw_input_field('email_address', '', 'size="18" id="login-email-address"'); ?>
    <br class="clearBoth" />

    <label class="inputLabel" for="login-password"><?php echo ENTRY_PASSWORD; ?></label>
    <?php echo zen_draw_password_field('password', '', 'size="18" id="login-password"'); ?>
    <?php echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']); ?>
    <br class="clearBoth" />

    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT); ?></div>
    <div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></div>
    </form>
    </fieldset>
    <br class="clearBoth" />

    <?php
    if ($_SESSION['cart']->count_contents() > 0) { ?>
    <fieldset>
    <legend>Checkout Without Account</legend>
    <?php echo TEXT_RATHER_COWOA; ?>
    <div class="buttonRow forward">
    <?php echo "<a href=\"" . zen_href_link(FILENAME_NO_ACCOUNT, '', 'SSL') . "\">"; ?>
    <?php echo zen_image_button(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT); ?></a></div>
    <br class="clearBoth" />
    </fieldset>
    <?php } ?>

    <!--EOF PPEC split login- DO NOT REMOVE-->
    <?php } else { ?>
    <!--BOF normal login-->
    <?php
    if ($_SESSION['cart']->count_contents() > 0) {
    ?>
    <div class="advisory"><?php echo TEXT_VISITORS_CART; ?></div>
    <?php
    }
    ?>
    <?php echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>
    <fieldset>
    <legend><?php echo HEADING_RETURNING_CUSTOMER; ?></legend>

    <label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>
    <?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="login-email-address"'); ?>
    <br class="clearBoth" />

    <label class="inputLabel" for="login-password"><?php echo ENTRY_PASSWORD; ?></label>
    <?php echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password') . ' id="login-password"'); ?>
    <br class="clearBoth" />
    <?php echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']); ?>
    </fieldset>

    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT); ?></div>
    <div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></div>
    </form>
    <br class="clearBoth" />

    <?php echo zen_draw_form('create_account', zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onsubmit="return check_form(create_account);"') . zen_draw_hidden_field('action', 'process') . zen_draw_hidden_field('email_pref_html', 'email_format'); ?>
    <fieldset>
    <legend><?php echo HEADING_NEW_CUSTOMER; ?></legend>

    <div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION; ?></div>

    <?php require($template->get_template_dir('tpl_modules_create_account.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_create_account.php'); ?>

    </fieldset>

    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SUBMIT, BUTTON_SUBMIT_ALT); ?></div>
    </form>
    <!--EOF normal login-->
    <?php } ?>
    </div>

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Customizing Guest Checkout

    I'd guess that you would move this:

    <?php
    if ($_SESSION['cart']->count_contents() > 0) { ?>
    <fieldset>
    <legend>Checkout Without Account</legend>
    <?php echo TEXT_RATHER_COWOA; ?>
    <div class="buttonRow forward">
    <?php echo "<a href=\"" . zen_href_link(FILENAME_NO_ACCOUNT, '', 'SSL') . "\">"; ?>
    <?php echo zen_image_button(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT); ?></a></div>
    <br class="clearBoth" />
    </fieldset>
    <?php } ?>

    to just below the 'message stack' line.

  3. #3
    Join Date
    Aug 2008
    Posts
    274
    Plugin Contributions
    0

    Default Re: Customizing Guest Checkout

    thanks


    d

 

 

Similar Threads

  1. v151 guest checkout
    By noyloza in forum General Questions
    Replies: 5
    Last Post: 24 Apr 2013, 05:18 AM
  2. v150 Guest Checkout: TEXT_CHECKOUT_LOGOFF_GUEST?
    By vmarty123 in forum General Questions
    Replies: 2
    Last Post: 1 Apr 2012, 03:36 PM
  3. Anonymous/Guest Checkout
    By larf2k in forum Addon Payment Modules
    Replies: 2
    Last Post: 28 Jun 2010, 03:39 PM
  4. Help! Missing Ship to and Bill To on checkout - Guest Checkout?
    By RiemenDesign in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 10 Jan 2009, 06:02 AM
  5. Guest Checkout
    By mudcreek in forum Managing Customers and Orders
    Replies: 4
    Last Post: 17 Apr 2007, 05:57 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