Version Notes
Now packaged for Connect 2.0.
If using a custom theme that modifies the login template please pay attention to "design/frontend/base/default/template/rememberme/" directory.
For translations see the "app/locale/en_US/Clockworkgeek_Rememberme.csv" file.
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | Clockworkgeek_Rememberme |
| Version | 0.3.2 |
| Comparing to | |
| See all releases | |
Code changes from version 0.3.1 to 0.3.2
app/code/community/Clockworkgeek/Rememberme/etc/config.xml
CHANGED
|
@@ -19,7 +19,7 @@
|
|
| 19 |
<config>
|
| 20 |
<modules>
|
| 21 |
<Clockworkgeek_Rememberme>
|
| 22 |
-
<version>0.3.
|
| 23 |
</Clockworkgeek_Rememberme>
|
| 24 |
</modules>
|
| 25 |
<global>
|
| 19 |
<config>
|
| 20 |
<modules>
|
| 21 |
<Clockworkgeek_Rememberme>
|
| 22 |
+
<version>0.3.2</version>
|
| 23 |
</Clockworkgeek_Rememberme>
|
| 24 |
</modules>
|
| 25 |
<global>
|
app/design/frontend/base/default/layout/rememberme.xml
CHANGED
|
@@ -13,4 +13,10 @@
|
|
| 13 |
</reference>
|
| 14 |
</customer_account_login>
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
</layout>
|
| 13 |
</reference>
|
| 14 |
</customer_account_login>
|
| 15 |
|
| 16 |
+
<checkout_onepage_index>
|
| 17 |
+
<reference name="checkout.onepage.login">
|
| 18 |
+
<action method="setTemplate"><template>rememberme/onepage/login.phtml</template></action>
|
| 19 |
+
</reference>
|
| 20 |
+
</checkout_onepage_index>
|
| 21 |
+
|
| 22 |
</layout>
|
app/design/frontend/base/default/template/rememberme/onepage/login.phtml
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magento
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
| 8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
| 9 |
+
* It is also available through the world-wide-web at this URL:
|
| 10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
| 11 |
+
* If you did not receive a copy of the license and are unable to
|
| 12 |
+
* obtain it through the world-wide-web, please send an email
|
| 13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
| 14 |
+
*
|
| 15 |
+
* DISCLAIMER
|
| 16 |
+
*
|
| 17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
| 18 |
+
* versions in the future. If you wish to customize Magento for your
|
| 19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
| 20 |
+
*
|
| 21 |
+
* @category design
|
| 22 |
+
* @package base_default
|
| 23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
| 24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
| 25 |
+
*/
|
| 26 |
+
?>
|
| 27 |
+
<div class="col2-set">
|
| 28 |
+
<?php echo $this->getChildHtml('login_before')?>
|
| 29 |
+
<div class="col-1">
|
| 30 |
+
<h3><?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?><?php echo $this->__('Checkout as a Guest or Register') ?><?php else: ?><?php echo $this->__('Register to Create an Account') ?><?php endif; ?></h3>
|
| 31 |
+
<?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
|
| 32 |
+
<p><?php echo $this->__('Register with us for future convenience:') ?></p>
|
| 33 |
+
<?php else: ?>
|
| 34 |
+
<p><strong><?php echo $this->__('Register and save time!') ?></strong><br />
|
| 35 |
+
<?php echo $this->__('Register with us for future convenience:') ?></p>
|
| 36 |
+
<ul>
|
| 37 |
+
<li><?php echo $this->__('Fast and easy check out') ?></li>
|
| 38 |
+
<li><?php echo $this->__('Easy access to your order history and status') ?></li>
|
| 39 |
+
</ul>
|
| 40 |
+
<?php endif; ?>
|
| 41 |
+
<?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
|
| 42 |
+
<ul class="form-list">
|
| 43 |
+
<?php if( $this->getQuote()->isAllowedGuestCheckout() ): ?>
|
| 44 |
+
<li class="control">
|
| 45 |
+
<input type="radio" name="checkout_method" id="login:guest" value="guest"<?php if($this->getQuote()->getCheckoutMethod()==Mage_Checkout_Model_Type_Onepage::METHOD_GUEST): ?> checked="checked"<?php endif; ?> class="radio" /><label for="login:guest"><?php echo $this->__('Checkout as Guest') ?></label>
|
| 46 |
+
</li>
|
| 47 |
+
<?php endif; ?>
|
| 48 |
+
<li class="control">
|
| 49 |
+
<input type="radio" name="checkout_method" id="login:register" value="register"<?php if($this->getQuote()->getCheckoutMethod()==Mage_Checkout_Model_Type_Onepage::METHOD_REGISTER || !$this->getQuote()->isAllowedGuestCheckout()): ?> checked="checked"<?php endif ?> class="radio" /><label for="login:register"><?php echo $this->__('Register') ?></label>
|
| 50 |
+
</li>
|
| 51 |
+
</ul>
|
| 52 |
+
<h4><?php echo $this->__('Register and save time!') ?></h4>
|
| 53 |
+
<p><?php echo $this->__('Register with us for future convenience:') ?></p>
|
| 54 |
+
<ul class="ul">
|
| 55 |
+
<li><?php echo $this->__('Fast and easy check out') ?></li>
|
| 56 |
+
<li><?php echo $this->__('Easy access to your order history and status') ?></li>
|
| 57 |
+
</ul>
|
| 58 |
+
<?php else: ?>
|
| 59 |
+
<input type="hidden" name="checkout_method" id="login:register" value="register" checked="checked" />
|
| 60 |
+
<?php endif; ?>
|
| 61 |
+
</div>
|
| 62 |
+
<div class="col-2">
|
| 63 |
+
<h3><?php echo $this->__('Login') ?></h3>
|
| 64 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
| 65 |
+
<form id="login-form" action="<?php echo $this->getPostAction() ?>" method="post">
|
| 66 |
+
<fieldset>
|
| 67 |
+
<h4><?php echo $this->__('Already registered?') ?></h4>
|
| 68 |
+
<p><?php echo $this->__('Please log in below:') ?></p>
|
| 69 |
+
<ul class="form-list">
|
| 70 |
+
<li>
|
| 71 |
+
<label for="login-email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
|
| 72 |
+
<div class="input-box">
|
| 73 |
+
<input type="text" class="input-text required-entry validate-email" id="login-email" name="login[username]" value="<?php echo $this->htmlEscape($this->getUsername()) ?>" />
|
| 74 |
+
</div>
|
| 75 |
+
</li>
|
| 76 |
+
<li>
|
| 77 |
+
<label for="login-password" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
|
| 78 |
+
<div class="input-box">
|
| 79 |
+
<input type="password" class="input-text required-entry" id="login-password" name="login[password]" />
|
| 80 |
+
</div>
|
| 81 |
+
</li>
|
| 82 |
+
<?php /* Begin rememberme customisation */ ?>
|
| 83 |
+
<li>
|
| 84 |
+
<div class="input-box">
|
| 85 |
+
<label for="rememberme" class="input-box"><input type="checkbox" name="login[rememberme]" class="checkbox left" id="rememberme" title="<?php echo $this->__('Remember me') ?>" style="margin-top: 2px" />
|
| 86 |
+
<?php echo $this->__('Remember me on this computer') ?></label>
|
| 87 |
+
</div>
|
| 88 |
+
</li>
|
| 89 |
+
<?php /* End rememberme customisation */ ?>
|
| 90 |
+
</ul>
|
| 91 |
+
</fieldset>
|
| 92 |
+
</form>
|
| 93 |
+
</div>
|
| 94 |
+
</div>
|
| 95 |
+
<div class="col2-set">
|
| 96 |
+
<div class="col-1">
|
| 97 |
+
<div class="buttons-set">
|
| 98 |
+
<p class="required"> </p>
|
| 99 |
+
<button type="button" class="button" onclick="checkout.setMethod();"><span><span><?php echo ($this->getQuote()->isAllowedGuestCheckout() ? $this->__('Continue') : $this->__('Register')) ?></span></span></button>
|
| 100 |
+
</div>
|
| 101 |
+
</div>
|
| 102 |
+
<div class="col-2">
|
| 103 |
+
<div class="buttons-set">
|
| 104 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
| 105 |
+
<a href="<?php echo $this->getUrl('customer/account/forgotpassword') ?>" class="f-left"><?php echo $this->__('Forgot your password?') ?></a>
|
| 106 |
+
<button type="submit" class="button" onclick="onepageLogin(this)"><span><span><?php echo $this->__('Login') ?></span></span></button>
|
| 107 |
+
</div>
|
| 108 |
+
</div>
|
| 109 |
+
</div>
|
| 110 |
+
<script type="text/javascript">
|
| 111 |
+
//<![CDATA[
|
| 112 |
+
var loginForm = new VarienForm('login-form', true);
|
| 113 |
+
$('login-email').observe('keypress', bindLoginPost);
|
| 114 |
+
$('login-password').observe('keypress', bindLoginPost);
|
| 115 |
+
function bindLoginPost(evt){
|
| 116 |
+
if (evt.keyCode == Event.KEY_RETURN) {
|
| 117 |
+
loginForm.submit();
|
| 118 |
+
}
|
| 119 |
+
}
|
| 120 |
+
function onepageLogin(button)
|
| 121 |
+
{
|
| 122 |
+
if(loginForm.validator && loginForm.validator.validate()){
|
| 123 |
+
button.disabled = true;
|
| 124 |
+
loginForm.submit();
|
| 125 |
+
}
|
| 126 |
+
}
|
| 127 |
+
//]]>
|
| 128 |
+
</script>
|
package.xml
CHANGED
|
@@ -1,22 +1,22 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Clockworkgeek_Rememberme</name>
|
| 4 |
-
<version>0.3.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Add a "remember me" option to login forms.</summary>
|
| 10 |
-
<description>Add a "remember me" option to login forms. Overrides default forms with those in "design/frontend/base/default/template/rememberme
|
| 11 |
<notes>Now packaged for Connect 2.0.
|
| 12 |

|
| 13 |
-
If using a custom theme that modifies the login template please pay attention to "design/frontend/base/default/template/rememberme/
|
| 14 |

|
| 15 |
For translations see the "app/locale/en_US/Clockworkgeek_Rememberme.csv" file.</notes>
|
| 16 |
<authors><author><name>clockworkgeek</name><user>auto-converted</user><email>nonproffessional@clockworkgeek.com</email></author></authors>
|
| 17 |
-
<date>2011-
|
| 18 |
-
<time>
|
| 19 |
-
<contents><target name="magecommunity"><dir name="Clockworkgeek"><dir name="Rememberme"><dir name="Model"><file name="Cookie.php" hash="9b292945fb1133b52c4b239b48fdebab"/></dir><dir name="etc"><file name="config.xml" hash="
|
| 20 |
<compatible/>
|
| 21 |
<dependencies/>
|
| 22 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Clockworkgeek_Rememberme</name>
|
| 4 |
+
<version>0.3.2</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Add a "remember me" option to login forms.</summary>
|
| 10 |
+
<description>Add a "remember me" option to login forms. Overrides default forms with those in "design/frontend/base/default/template/rememberme".</description>
|
| 11 |
<notes>Now packaged for Connect 2.0.
|
| 12 |

|
| 13 |
+
If using a custom theme that modifies the login template please pay attention to "design/frontend/base/default/template/rememberme/" directory.
|
| 14 |

|
| 15 |
For translations see the "app/locale/en_US/Clockworkgeek_Rememberme.csv" file.</notes>
|
| 16 |
<authors><author><name>clockworkgeek</name><user>auto-converted</user><email>nonproffessional@clockworkgeek.com</email></author></authors>
|
| 17 |
+
<date>2011-07-15</date>
|
| 18 |
+
<time>22:23:17</time>
|
| 19 |
+
<contents><target name="magecommunity"><dir name="Clockworkgeek"><dir name="Rememberme"><dir name="Model"><file name="Cookie.php" hash="9b292945fb1133b52c4b239b48fdebab"/></dir><dir name="etc"><file name="config.xml" hash="afa4a8e3aec53b3b71754e60a61f3bfd"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="rememberme.xml" hash="d9be2b5bea426b07ee54c83477ff024a"/></dir><dir name="template"><dir name="rememberme"><dir name="form"><file name="login.phtml" hash="28278218907cbddfe8d4a43d410e20d5"/><file name="mini.login.phtml" hash="9be6fe073f7298ac54bd6b8a8c1bffb2"/></dir><dir name="onepage"><file name="login.phtml" hash="f44f2936ac9398f8e2f2ccdd311b1f68"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Clockworkgeek_Rememberme.xml" hash="527fa1b6cafaa8c51284db22701526b8"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Clockworkgeek_Rememberme.csv" hash="5735e85f86d3e3a2face58296d113213"/></dir></target></contents>
|
| 20 |
<compatible/>
|
| 21 |
<dependencies/>
|
| 22 |
</package>
|
