| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Use E-mail address instead of username 3.5.x & 4.0 | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#121
|
|||||||||
|
|||||||||
![]() For xcart version 4.1.9 pro version
I just changed the username to email address and i need to know whether i missed anything. I think it is working fine ,but i don't know the side effects. 1.altered the table xcart_customer ->login field length to 128. 2.altered the table xcart_orders->login field length to 128. 3.include /login.php changed this line -> $is_username_len_err = strlen($HTTP_POST_VARS["username"]) > 128; 4.include/register.php replace this $allowed_update = (($usertype == $current_area && !empty($login) && !empty($uname) && $login == $uname) || ($current_area == "P" && $active_modules["Simple_Mode"]) || $current_area == "A"); with $allowed_update = (($usertype == $current_area && !empty($login) && !empty($uname) && (($login == $uname)||($login == $email))) || ($current_area == "P" && $active_modules["Simple_Mode"]) || $current_area == "A"); 5.in register.tpl Add this: inside the below line:&& checkEmailAddress(document.registerform.uname, 'Y') after this condition:{if $default_fields.email.avail eq 'Y'} && checkEmailAddress(document.registerform.email, '{$default_fields.email.required}'){/if} if (check_zip_code(){if $default_fields.email.avail eq 'Y'} && checkEmailAddress(document.registerform.email, '{$default_fields.email.required}'){/if}{if $config.General.check_cc_number eq "Y" AND $config.General.disable_cc ne "Y"}&& checkCCNumber(document.registerform.card_number,do cument.registerform.card_type) {/if}&& checkRequired(requiredFields)) {ldelim} Is this enough ? It works fine for me.
__________________
MercuryMinds Technologies Development Team, Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com X-Cart Mailchimp Ecommerce 360 Plugin/integration module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) Smasher, a smart search engine for x-cart store (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) One Page Checkout (OPC) - X-Cart module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) |
|||||||||
#122
|
|||||||||
|
|||||||||
![]() 1. If you use the e-mail address for username, does the providers also use their e-mail address as username? I guess most providers will also register as customers - then they will have to have 2 e-mail addresses?
2. How do you handle it when a user changes his e-mail address? Does the username also change and how do you then keep track of the user's orders under the previous username (e-mail)?
__________________
M Conradie x-cart pro |
|||||||||
#123
|
|||||||
|
|||||||
![]() has anybody tried this for v4.3?
__________________
X-Cart 4.3.0 Gold |
|||||||
#124
|
|||||||
|
|||||||
![]() Quote:
But then again, I couldn't confirm if they are still releasing 4.4.x. or just going straight from 4.3 to 5.0 instead.
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9 |
|||||||
#125
|
|||||||||
|
|||||||||
![]() Hi!
Most likely we will release 4.4 |
|||||||||
|
#126
|
|||||||
|
|||||||
![]() Quote:
Thank you very much for the reply. Can you please let us know the release time lime for 4.4? Is still March time frame for beta? And then approximately when we can expect the final release for 4.4? Thank you again!
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9 |
|||||||
#127
|
|||||||||
|
|||||||||
![]() Hi,
I am not sure of the provider login. Yes ,they need to use email address for register ,but most of the admin will register for the provider by themself. To handle the username changes ,I have two option. 1.) just change the email address alone and dont change the username value.It means that once they created teh account ,they cant change the username.But practically it leads to confusion to the user ![]() 2.) just tweak login page to use the email address field and login field to make the user login. It means that once customer login they cant change the username (login field ) ,but they can change the email address and during the login we need to check the username agianst login field and email address field . I feel second option will works better without any problem if you implement it correcly. Quote:
__________________
MercuryMinds Technologies Development Team, Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com X-Cart Mailchimp Ecommerce 360 Plugin/integration module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) Smasher, a smart search engine for x-cart store (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) One Page Checkout (OPC) - X-Cart module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) |
|||||||||
#128
|
|||||||||
|
|||||||||
![]() Just an update to everyone. Our latest release of One Page Checkout (integrated version) supports email as username by default. Checkout more details here http://www.mercuryminds.com/product/x-cart-one-page-checkout-module.html
PM me here or contact us at sales@mercuryminds.com for any queries. -Reva
__________________
MercuryMinds Technologies Sales Team, Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com |
|||||||||
#129
|
|||||||
|
|||||||
![]() Hi
after reading a lot of pages of info i am now pretty confused as to which code changes i need to implement! I hope someone can provide an answer using 4.4.2 I wish to allow (already registered) users to log in with either their username OR their email address
__________________
4.4.3 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|