Post by exactweb » Wed Apr 04, 2012 6:50 pm

Small little vqmod to remember the customers email address when they are trying to login.

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>
Last edited by exactweb on Fri Apr 06, 2012 3:36 am, edited 1 time in total.

New member

Posts

Joined
Tue May 31, 2011 5:06 pm

Post by MrTech » Thu Apr 05, 2012 5:30 am

Is anything submitted that is useful ever deemed valid? lol

Thanks for sharing!

~
Install Extensions OR OpenCart Fast Service! PayPal Accepted
I will professionally install and configure any free or purchased theme, module or extension.

Visit http://www.mrtech.ca if you need an OpenCart webmaster
~


User avatar
Active Member

Posts

Joined
Mon Jan 09, 2012 2:39 pm
Location - Canada, Eh!

Post by exactweb » Thu Apr 05, 2012 5:41 am

MrTech wrote:Is anything submitted that is useful ever deemed valid? lol
Maybe not, but anything that assist the customer in being able to log into the store can only increase sales :joker: .

New member

Posts

Joined
Tue May 31, 2011 5:06 pm

Post by MrTech » Fri Apr 06, 2012 8:58 am

Nice, thanks for the update!

~
Install Extensions OR OpenCart Fast Service! PayPal Accepted
I will professionally install and configure any free or purchased theme, module or extension.

Visit http://www.mrtech.ca if you need an OpenCart webmaster
~


User avatar
Active Member

Posts

Joined
Mon Jan 09, 2012 2:39 pm
Location - Canada, Eh!
Who is online

Users browsing this forum: No registered users and 8 guests