| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Use E-mail address instead of username 3.5.x & 4.0 | ||||
|
|
Thread Tools | Search this Thread |
#41
|
|||||||
|
|||||||
Has anyone got this working with 4.017 ?
__________________
X-Cart Gold 4.0.17 X-AOM Safetynet DSEFU Easy Checkout _________________ |
|||||||
#42
|
|||||||
|
|||||||
Seems to work fine on 4.0.17
__________________
X-Cart Gold v4.1.11 |
|||||||
#43
|
|||||||
|
|||||||
Hi,
I'm going to throw in my method for 4.1.0 rc4 in case some couldn't get the others to work. include/register.php find Code:
replace with Code:
By deleting the error check for username, the cart will allow registrations without it. Find Code:
Replace with Code:
Since we're not allowing the customer to enter a username, the code above will automatically populate the username field with the email the customer supplies. Find Code:
Replace with Code:
When the customer updates their email, their login will also reflect the change. There's only a slight problem with this. If the customer updates any of their other information, everything is fine. But when they update their email, they will get logged out. I don't know what causes the logout but their email/login still gets changed. What I did for my cart was add a little note "Note: If you change your email address, you will have to re-login for security purposes" skin1/generate_required_fields_js.tpl Delete this code to prevent check for uname Code:
skin1/main/register_account.tpl You'll need to comment out the username fields: Code:
Code:
With the above code, I had to take <input type="hidden" name="uname" value="{$userinfo.login|default:$userinfo.uname}" /> out of the commented out code block because xcart needs it to finish the registration process. You can leave everything else commented out. All of the above satisfies your needs if you want the customer to use their email as their login. The extra stuff below will add in a second field for them to type their email twice for confirmation: skin1/main/register_contact_info.tpl or wherever tpl you have your email field in Add this under the intial email block: Code:
skin1/check_email_script.js Add this: Code:
before return !err; at the end of the file </TR> [/code] |
|||||||
#44
|
|||||||||
|
|||||||||
xcell67 did you tried for final ver 4.1.0?
thank you.
__________________
// x-cart 4.1.9 X-CART CSS SKIN XC SEO IP Addresses in Users Online for all users Color coded order status |
|||||||||
#45
|
|||||||
|
|||||||
Works great in 4.0.18 - thanks!
__________________
Callum. X-Cart 4.0.18 X-Affiliate X-Configurator X-Feature Comparison WebsiteCM CDSEO WebsiteCM Remember Me |
|||||||
#46
|
|||||||
|
|||||||
Hello all! I need some expert advice. I am trying to get this patch to work.
ALTER TABLE `xcart_customers` ADD UNIQUE ( `email` ); it does seem to work (i patched through the xcart admin), however, when I try to create a account to test this, and use the same email as an existing account after i press submit I get this error on a blank white page: Code:
Also, there are not duplicate emails in the database. then it goes to "user created" dialog message but upon checking in the admin the user is not actually created. Any insight about this error. Any insight please let me know..
__________________
X-Cart Gold Version 4.0.18 EWDHosting.com is my Host Unix Servers |
|||||||
#47
|
|||||||
|
|||||||
Make sure you don't have the same email in the database for two different accounts.
__________________
Mike Kenzie X Cart Gold Ver. 4.1.3 X-RMA X-AOM X-Product Comparison |
|||||||
#48
|
|||||||
|
|||||||
Nope, there are no duplicate emails. Any other ideas?
__________________
X-Cart Gold Version 4.0.18 EWDHosting.com is my Host Unix Servers |
|||||||
#49
|
|||||||
|
|||||||
Quote:
Thanks.
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9 |
|||||||
#50
|
|||||||||
|
|||||||||
any1?
__________________
// x-cart 4.1.9 X-CART CSS SKIN XC SEO IP Addresses in Users Online for all users Color coded order status |
|||||||||
|
|||
X-Cart forums © 2001-2020
|