Jump to content

Login with username instead of email


Recommended Posts

Hi, we're moving from Joomla-VirtueMart to Prestashop but if I'm trying to import CSV with customers I can't find field "username" and it looks like they are obliged to log in with email, can I add somewhere option to log with username? We do have more than 2000 clients and it would be kind of stupid to write them about that change. Thanks a lot for your advice

Karolina

Link to comment
Share on other sites

Karolina,

I have never heard the same question :)

 

A quick answer for you:

1. Prestashop does not support logging in with username. Moreover, "username" does not exist in customer table.

 

2. But you totally can customize the code and support it.

Here are steps, in my opinion:

2.1. Add a new column into customer table saying "username". Refer to step #2.4 below.

2.2. Import your clients over

2.3. (Frontend) Change the login form, it should say "Email / username" and disable validating against email field.

c72fc622-63d1-11e4-9a19-84392c3ba2bb.png

e696b372-63d1-11e4-9640-1c00138eb3d6.png

 

2.4. Install this free module. I've written it, JUST FOR YOU :)

 

Your clients now should be able to log in with username.

 

Have fun!

Tung

Edited by TungCEO (see edit history)
  • Like 1
Link to comment
Share on other sites

I've checked it today with default prestatheme wich comes ith the installation and it's not working there as well. Do you have an idea what can be wrong?

 

Printscreein with the default theme

 

Could be the problem caused by using Czech instead of English?

 

From my theme support I've got this respond: "Hi,Please Check your New Module(Log-in with username instead of email - Module) in Default Prestashop theme, if it's working ,then this module is also working in our theme. Our theme support all default functionality."

Edited by vyskoczilova (see edit history)
Link to comment
Share on other sites

Once more from the support:

 

Hi,

I was Check "Logging in with username" Module in default Prestashop theme and there is no any "User Name" Field that you say in "http://www.prestashop.com/forums/topic/376310-log-in-with-username-instead-of-email-module-attached/" this link.
See Attach Screenshot: http://disk.kybernaut.cz/kybernaut_01.png and http://disk.kybernaut.cz/kybernaut_02.png

If you still have any question then give me more detail about your issue with screenshot.

http://demo.kybernaut.cz/yama/


Best Regards,
Krishna Kanani 

Link to comment
Share on other sites

Hi, works like a charm, but one more thing: I suppose that Email is just my translation which should be "Email / Username" but, I can login with the username (great!!) but when I type, it make the form red and with "x" sign, could you get rid of it or just make it green as email is?

 

login form: printscreen here

 

and another minor problem (however it's working, which is perfect) - user name is not displayed in "Customers" overview in admin - printscreen, printscreen2 - but that's not urgent, I don't need to see it if it's working

Edited by vyskoczilova (see edit history)
Link to comment
Share on other sites

  • 10 months later...

Hello

On prestashop 1.6.1.0 i do this:

<input class="is_required validate account_input form-control" type="email" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|stripslashes}{/if}" placeholder="{l s='Email address'}" />

but login form show error : Please enter a valid email address

 

What can i do

Greetings

Link to comment
Share on other sites

×
×
  • Create New...