| ||||||||||
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 |
#1
|
|||||||||
|
|||||||||
Use E-mail address instead of username 3.5.x & 4.0
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:
Change to: Code:
Should work without troubles on 3.5.x and 4.0.x
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#2
|
|||||||||
|
|||||||||
You little beauty I was just about to start looking into this!
Nice one boomer.
__________________
Groovico Used by X-carters the world over: Marketing Manager Pro Bundle For X-cart Featured Product Manager for X-cart Feed manager pro for X-cart http://www.firetanksoftware.com Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X |
|||||||||
#3
|
|||||||
|
|||||||
Rock on!!
Works for me. This should be standard. Most other places just use your email as the unique username, xcart should too.
__________________
No longer using Xcart, was good while it lasted. |
|||||||
#4
|
|||||||
|
|||||||
This is a nice little mod that should be implemented into x-cart. One question , it has probably been answered before, but how would you check to see if an e-mail address already exists and stop another person from registering an identical e-mail address. I am figuring it is somewhere in include/register.php, but can't seem to locate the where and what type of code to add.
Thanks for any comments. -Mike W. |
|||||||
#5
|
|||||||
|
|||||||
Thanks BOOMER,
If you were a leg, and I was a dog... well you get the point.. Awesome mod |
|||||||
#6
|
|||||||||
|
|||||||||
Quote:
Go into phpMyAdmin and set the email field to "Unique" and MySQL will take care of it for you OR login to X-Cart and use the following MySQL code snippet in the Patch SQL area: Code:
You may need to add some error catching in include/register.php but atleast noone can register the same email twice.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#7
|
|||||||
|
|||||||
Slight addition which adds a checkbox to copy the e-mail field to the username field.
in skin1/check_email_script.tpl add the following code: Code:
then in skin1/main/register_account.tpl just below the comment Code:
add this code: Code:
__________________
xcartmods.co.uk |
|||||||
#8
|
|||||||
|
|||||||
Add this to get it to work...
{/if}
|
|||||||
#9
|
|||||||
|
|||||||
thanks!
__________________
----------------------- x-cart v4.7.6 [LIVE] x-cart v4.0.18 [retired 2004-2016] x-cart v3.5.13 [retired] x-cart v3.4.14 [retired] |
|||||||
#10
|
|||||||
|
|||||||
Good job! I have to use this ASAP on my sites. thanks!
|
|||||||
|
|||
X-Cart forums © 2001-2020
|