E.g: A careless customer has by accident entered their password incorrectly. Why should they have to re-enter their email address?
Sadly Daniel thinks this is "invalid" and wont add it to the core: http://code.google.com/p/opencart/issues/detail?id=852
[EDIT]This was added to the SVN revision: 997, so hopefully it's in the next version. Thank you[/EDIT]
Code: Select all
<file name="catalog/controller/account/login.php">
<operation>
<search position="before"><![CDATA[
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/account/login.tpl')) {
]]></search>
<add><![CDATA[
if (isset($this->request->post['email'])) {
$this->data['email'] = $this->request->post['email'];
} else {
$this->data['email'] = '';
}
]]></add>
</operation>
</file>
<file name="catalog/view/theme/*/template/account/login.tpl">
<operation>
<search position="replace"><![CDATA[
<input type="text" name="email" value="" />
]]></search>
<add><![CDATA[
<input type="text" name="email" value="<?php echo $email ?>" />
]]></add>
</operation>
</file>