Totally Zenned
- Join Date:
- Feb 2007
- Posts:
- 518
- Plugin Contributions:
- 1
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>
***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\
**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://[COLOR=red]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 **