Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    Feb 2007
    Posts
    513
    Plugin Contributions
    2

    Default want 2 login pages - one for check out, one for login

    I made a zen cart v.1.3.7 for someone and they did not like the registration with a login at the top at check out, so I was going to ask how would I make 2 login pages - I want to make one for when someone clicks on login and another for when someone gos through check out, but as I was writing this I made it my self which I found not to hard as I know the coding...

    If any one else wants to do this

    1.
    Copy:
    \includes\templates\template_default\templates\tpl_login_default.php
    Create:
    \includes\templates\template_default\templates\tpl_login2_default.php


    2.
    Backup and Edit:
    \includes\templates\template_default\templates\tpl_login_default.php

    Remove

    <?php echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>
    <fieldset>
    <legend>Returning customer Login </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"'); ?>
    <div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . 'Forgot your password?' . '</a>'; ?></div>
    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT); ?></div>
    <br class="clearBoth" />
    </fieldset>

    Add (to where you removed the above) :
    <div><p align="right"><a href="http://www.yourdomain.com/index.php?main_page=login2">login</a> </p>
    </div>

    ***and edit to suit your check out needs

    change the word BUTTON_IMAGE_SUBMIT to BUTTON_IMAGE_CONTINUE_CHECKOUT

    3.
    Copy the folder
    \includes\modules\pages\login\

    Past and make the folder
    \includes\modules\pages\login2\


    [COLOR=blue]4.
    edit
    \includes\templates\template_default\common\tpl_header.php

    Change:
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>

    To:
    <li><a href="http://www.yourdoamin.com/index.php?main_page=login2"><?php echo HEADER_TITLE_LOGIN; ?></a></li>

    5.

    edit:
    \includes\languages\english\password_forgotten.php


    Change:
    define('SUCCESS_PASSWORD_SENT', 'A new password has been sent to your email address.');



    To:
    define('SUCCESS_PASSWORD_SENT', 'A new password has been sent to your email address.<br /><br /><br /><a href="<A href="http://www.exoticparadise.com.au/index.php?main_page=login2">Click">http://www.yourdoamin.com/index.php?main_page=login2">Click here</a> to Login<br /><br /><br /><br />');


    6.

    You may or may not need to do the following:
    Edit:
    \includes\templates\template_default\templates\tpl_login2_default.php

    Change:
    <div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></div>

    To
    <div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . 'Forgot your password?' . '</a>'; ?></div>


    I hope I did not forget anything...

    I would not do this with any other version but V.1.3.7
    the above procedure worked for me but I would not do this unless you know what you are doing,

    ...always backup the documents you are editing
    Last edited by vandiermen; 8 Jun 2007 at 06:23 PM.

 

 

Similar Threads

  1. v150 Hosting 2 installs on the one site (one for dev, one for live)
    By howcho in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 23 Jul 2012, 10:02 PM
  2. Header Logo - One for the Home Page, one for all other pages?
    By CultureClick in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 18 Jun 2012, 12:56 PM
  3. Require Login for one EZ Page?
    By Monster Pawn in forum General Questions
    Replies: 26
    Last Post: 1 Jun 2012, 04:54 AM
  4. one page check out for 1.3.7?
    By andyshea in forum General Questions
    Replies: 2
    Last Post: 18 Oct 2008, 03:53 AM
  5. Login for Price for only ONE product....
    By jettrue in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Jul 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