| ||||||||||
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 |
#21
|
|||||||
|
|||||||
x-light,
It looks like this mod still allows anonymous checkout? How can a returning customer checkout anonymously if the email field is unique? Also, let me know if I am understanding this correctly. When a customer enters his/her info during checkout, your mod creates the customer if the email is unique, but deletes it if it finds out the customer is checking out anonymously? One more thing, our store has been live for a while so we have some customers. The last time I checked, we have up to 800 customers who have anonymously checked out more than once (in other words, we have a lot of duplicate emails). How can we remove or handle those? Thanks.
__________________
3.5.10 |
|||||||
#22
|
|||||||
|
|||||||
Hi Speedmaster,
Quote:
That's a good question. This relates to your second question. When a customer checks out anonymously, the mod will check to see if a his/her email exist in the customers table. If it does exist and it belongs to an anonymous user, it will first delete that specific record and create a new one with that email. However, if the email exist and it belongs to an registered user, the mod will set the eerror and an duplicate email error will be returned to the user. This should be safe since anonymous users only log in to place an order once and if they do place an order, a seperate order record is placed in the orders table. Quote:
Actually, it only creates the record when the following is true as shown in the above answer. Quote:
Well I don't know exaclty what you want to do with this. However, if I understand you correctly, it sounds like you want to remove records that has duplicate emails. I think what you may need is a custom script which access the customers table outside x-cart and do some logic checking. However, since you are running a live store, I would definitely backup your entire database just in case if the script deletes the wrong records. You can whip up a script which retreives all anonymous customers from the customer table do perform the following logic: 1. store each records with with same email in an list of arrays 2. compare to see if the first_login time is newer than the previous one if exist if, so keep this record, else delete this record (this ensures that the emails should be most recent after all duplicate is removed) That should be it, after you run a script which perform these logic, your customer table should have no duplicate emails along with the latest first_login time for each of them. Hope this helps. ~x-light [/code]
__________________
X-Cart 4.xx Gold Enterprise Linux |
|||||||
#23
|
|||||||
|
|||||||
Email Address
OK, so what happens when the user changes their email address? I think a user name is a far simpler approach. Also easier to log in with.
__________________
GerryB Xcart 4.0.11 ____________ Remember not to forget that which you do not need to know. |
|||||||
#24
|
|||||||
|
|||||||
x-light,
Thanks for the info. I'm going to go work on this now.
__________________
3.5.10 |
|||||||
#25
|
|||||||
|
|||||||
Did anyone get the x-light code implemented for the 3.5x branch? I would really like this mod, but as soon as I changed the code to use 'func_query_first cell' it seemes to fall down.
__________________
----------------------------------------- X-Cart5 v5.2.16 (Live) ----------------------------------------- |
|||||||
#26
|
|||||||
|
|||||||
Has anyone done this mod for 3.4.x ??
__________________
http://www.lingerieblowout.com Version 4.1.10 http://www.topnichewebsites.com Version 4.4.5 Michael |
|||||||
#27
|
|||||||
|
|||||||
Has anyone modify it in 4.13? Any problems?
I think register.php in /include is a bit different.
__________________
Siripakdi Version 4.0.13 |
|||||||
#28
|
|||||||
|
|||||||
Hi all,
I am glad to hear some feedbacks about this mod. Quote:
Code:
hey guys, unfortunately I don't have v3.4.x or 3.5x release so I would not know how much work is required to make it compatible. I only have v4.0.12 and v4.0.13 release. Also, I have been working on other mods to customize my store so I won't have too much time in looking at this. Hopefully, someone out there with your versions finds this mod useful and make the proper modifications. Good luck. Quote:
hello usiripakdi, actually, I switched from v4.0.12 to v4.0.13 so I have the updated code. There isn't much difference between these 2 versions as far as the mod is concerned. Here is the updated code. ------------------------------------ include/register.php v3 Code:
~x-light
__________________
X-Cart 4.xx Gold Enterprise Linux |
|||||||
#29
|
|||||||
|
|||||||
Thanks X-light
__________________
Siripakdi Version 4.0.13 |
|||||||
#30
|
|||||||||
|
|||||||||
passing to 4.0.14 any code changes?
updated and all my custom work fly away closed to shop to fix them out for example register.php in root is different on 4.0.14 x-light hear my cry
__________________
// 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
|