X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Use E-mail address instead of username 3.5.x & 4.0 (https://forum.x-cart.com/showthread.php?t=8809)

JWait 01-10-2009 09:02 AM

Re: Use E-mail address instead of username 3.5.x & 4.0
 
Quote:

Originally Posted by balinor
http://forum.x-cart.com/showpost.php?p=215306&postcount=101

Also, the security patches that came out in the last few months prevent special characters such as @ in the username.


I realize the part about anonymous checkout (we disable it anyway), and the part about the security patches but have no idea why they made that change, do you?

balinor 01-10-2009 09:09 AM

Re: Use E-mail address instead of username 3.5.x & 4.0
 
You disable anon checkout? Really? You aware that 1 in 4 e-commerce customers prefer NOT to create an account?

I have no idea on the security question, just being overly careful I think.

JWait 01-10-2009 09:34 AM

Re: Use E-mail address instead of username 3.5.x & 4.0
 
Anonymous is a total PITA.

It always seems the customers that did not want to create an account were the same ones that would call our 800 number asking about the status of their orders. The time and money spent on this "customer service" was determined to be too great to allow it to continue.

Since it is basically the difference of adding a username and password that is the difference, changing that to adding a password only, and using the email as the username seems like the reasonable solution. You can then add a "order history link" that you can use by entering your email address and (maybe) password. To recover the password, enter your email address..... simple!

We already have a "order tracking link" where all the customer has to do is enter their order number but you would be surprised how many people don't even know that.

There are lots of shopping carts that use this method, and I am surprised that X-cart does not have that ability.

Not allowing a email address instead of a username just seems kind of lame to me. There has to be some kind of work around that doesn't affect "security".

Doctored Locks 01-12-2009 09:25 AM

Re: Use E-mail address instead of username 3.5.x & 4.0
 
We are also looking for this.

rsands 01-12-2009 04:35 PM

Re: Use E-mail address instead of username 3.5.x & 4.0
 
come on x-cart...step up to the plate here...this layout of system usernames is dated...emails are used as usernames in 21st centry...this has 12 pages of people talking about this for such a simple mod on your part

pfarcus 01-16-2009 02:48 PM

Re: Use E-mail address instead of username 3.5.x & 4.0
 
I have anonymous check out enabled but when i test it it asks for a user and password, what am i missing? some check box somewhere?

starwest 01-30-2009 01:44 PM

Re: Use E-mail address instead of username 3.5.x & 4.0
 
Quote:

Originally Posted by rsands
come on x-cart...step up to the plate here...this layout of system usernames is dated...emails are used as usernames in 21st centry...this has 12 pages of people talking about this for such a simple mod on your part



Yes, this is definitely something I would LOVE to see X-Cart take care of. The current system of having to select both a username and enter your email is cumbersome and bound to fail for most individuals. Even before we allowed anonymous checkout, many of our customers created a new account each time they visited the site - no doubt because they had forgotten their username and/or password. If everything was tied to email, customers who register would be much more likely to use their existing account (or be reminded that they do have an existing account). Also, because X-Cart creates accounts for anonymous customers already, if they were based on email addresses it could simply append orders to the existing user account if an email were used again by an anonymouse customer.

Unfortunately, I imagine this may be too big of a change for them to consider in v4.1.x, which they're hoping to phase out in favor of v4.2.x. Still, it seems like this change would be EXTREMELY popular, so I'll cross my fingers and hope someone at X-Cart is listening.

milla_c 02-03-2009 04:54 AM

Re: Use E-mail address instead of username 3.5.x & 4.0
 
Quote:

Originally Posted by starwest
Yes, this is definitely something I would LOVE to see X-Cart take care of. The current system of having to select both a username and enter your email is cumbersome and bound to fail for most individuals.


O yes, I also vote for this feature! AND for it to be in v4.1.x.
Please please please somebody at X-cart!!!

seaCOAST 02-15-2009 05:29 PM

Re: Use E-mail address instead of username 3.5.x & 4.0
 
Quote:

Originally Posted by B00MER
Use E-mail address instead of username for X-Cart 3.5.x & 4.0.

Let users use either their email address or username to login instead of JUST the username.

Edit include/login.php find:

Code:

$user_data = func_query_first("SELECT * FROM $sql_tbl[customers] WHERE login='$username' AND usertype='$usertype' AND status='Y'");

Change to:

Code:

$user_data=func_query_first("select * from $sql_tbl[customers] where (login='$username' or email='$username') and usertype='$usertype' and status='Y'");

:!: Should work without troubles on 3.5.x and 4.0.x


I know this is an old post, but how can I make this work in 4.2.x?

The line I found in my login.php looks like this:


Code:

$user_data = func_query_first("SELECT * FROM $sql_tbl[customers] WHERE BINARY LOWER(login)='$username' AND usertype='$usertype' AND status='Y'");


Thanks!

milla_c 02-19-2009 11:22 PM

Re: Use E-mail address instead of username 3.5.x & 4.0
 
Hope this helps someone...

First of all, I allowed users to have '@' and '.' in their usernames.
On registration I hid the 'username' field and had a note at the e-mail address that says your e-mail address will also be your username.
On submitting, the e-mail address is assigned to the username. (uname = email)
After successful submission, the e-mail field cannot be changed again by the user - if they want to edit the profile, they can, but the e-mail field is not edit-able. Yip, that means if your e-mail address changes you have to create a new user and profile, but that doesnt happen often.

After all that effort I stumbled across a much bigger issue... since I have x-cart pro and the providers also use their e-mail addresses as username, the providers must have another e-mail account ready to also register as customers, since they cannot use the same e-mail address for the username as customer.

So, after all my effort I am back at the usernames as it was, except that I still allow '@' and '.' in the username. :-(

Sometimes your learn from other's errors, sometimes they learn from yours!


All times are GMT -8. The time now is 08:49 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.