Results 1 to 7 of 7
  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.

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

    Default Re: 2 login pages - one for check out, one for login

    I have never seen this before, but I was unable to edit the above post, it said you are only allowed to edit this post in the first 7 minutes after creating it...

    Anyway I was editing it because the forum auto inserted a link which corrupted the code I gave you

    Set 5 should look like:

    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="http://www.yourdoamin.com/index.php?main_page=login2">Click here</a> to Login<br /><br /><br /><br />');

  3. #3
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: 2 login pages - one for check out, one for login

    Hum ... I haven't tried this MOD but all instances of:

    PHP Code:
    <a href="http://www.yourdomain.com/index.php?main_page=login2"
    should be replaced with:

    PHP Code:
    <?php echo '<a href="' zen_href_link(FILENAME_LOGIN2'''SSL') . '">' ENTRY_LOGIN2_TEXT '</a>'?>
    Assuming your FILENAME_LOGIN2 and ENTRY_LOGIN2_TEXT would be defined under your language's extra_definitions folder.

    This modification is also useful for shop owners who would like to store their 2nd login page under SSL protocol since your method only suggests to login from NONSSL.

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

    Default Re: 2 login pages - one for check out, one for login

    I now think a better way to do this is to activate the Split-Login (Admin->Configuration->Layout Settings->Use Split-Login Page ) and link the “go to checkout” button to /index.php?main_page=create_account&action=process
    instead of /index.php?main_page=login
    I will be doing this next time
    Last edited by vandiermen; 19 Jun 2007 at 01:56 PM. Reason: wording

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

    Default Re: 2 login pages - one for check out, one for login

    I had to do it again for another site so I decided to do it the better way (as seen above)
    But the way I told people to do it above did not work

    You have to do this

    1. activate the Split-Login (Admin->Configuration->Layout Settings->Use Split-Login Page )

    2. edit
    \includes\templates\template_default\templates\tpl_shopping_cart_default.php

    Change this
    zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' .

    To this
    zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' .

    That works

    I can send people the file to patch their site if you email me

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

    Default Re: 2 login pages - one for check out, one for login

    P.s.

    You dont need to activate the Split-Login, you just need to edit that word or patch your site with this file http://www.abcpchelp.com/zencart/NoA...t/includes.zip

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

    Default Re: 2 login pages - one for check out, one for login

    Sorry, disregard my last instructions because they don’t work, you end up going to the index.php?main_page=create_account, then index.php?main_page=create_account_success, then back to the homepage.
    I would like to know how it would work if anyone has any ideas
    Last edited by vandiermen; 11 Aug 2007 at 07:40 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