Non-anonymous customer is now anonymous

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
snap624
Lieutenant (LT)
Lieutenant (LT)
Posts: 58
Joined: Mon Jan 19, 2009 2:53 pm

Non-anonymous customer is now anonymous

Post by snap624 » Wed Nov 24, 2010 10:46 pm

We had someone place an order (we don't allow anonymous checkout). We shipped the order out and now the customer is anonymous. Somehow their email address/id has been deleted from their account. How is this possible? It seems their customer profile has switched back to an anonymous visitor!! Their page tracking information seems to be wiped out now that they are anonymous. I can't seem to view any page tracking info that was associated with their non-anonymous id; all that info is gone. Everything they did when they had a customer profile is off the page tracking record (including placing an order). We are a little concerned if this order turns out to be a problem and we have no log information regarding the order (all we have is the order iteself). Even if there is no security/fraud problem, the customer will not be able to log into their account and view their order/account information. We don't know if they did something or if their is some sort of system error that has allowed this to occur.
Is their anyway to switch it back?

I saw this discussion, but where do we add this code?

viewtopic.php?f=42&t=12707&p=54808&hili ... ile#p54808

And, ultimately, why/how did this occur in the first place?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Non-anonymous customer is now anonymous

Post by mazhar » Fri Nov 26, 2010 4:26 am

I saw this discussion, but where do we add this code?
Well you can add this script somewhere on users screen in admin panel. It not really specific to any location, so simply put it somewhere on some admin page and then it will let you correct the user information associated with given order.

snap624
Lieutenant (LT)
Lieutenant (LT)
Posts: 58
Joined: Mon Jan 19, 2009 2:53 pm

Re: Non-anonymous customer is now anonymous

Post by snap624 » Mon Nov 29, 2010 10:05 am

Mazhar:

Sorry, but I cant' get this to work. I tried putting the following code:

Code: Select all

int orderId = CommerceBuilder.Orders.OrderDataSource.LookupOrderId(AlwaysConvert.ToInt(OrderNumberTextBox.Text));
        CommerceBuilder.Orders.Order order = CommerceBuilder.Orders.OrderDataSource.Load(orderId, false);
        CommerceBuilder.Users.User user = order.User;
        string emailAddress = string.Empty;

        emailAddress = user.Email;
        if (String.IsNullOrEmpty(emailAddress))
            emailAddress = order.BillToEmail;
        if (String.IsNullOrEmpty(emailAddress))
            return;
        user.UserName = emailAddress;
        user.Email = emailAddress;
        user.IsAnonymous = false;
        user.Save();
        user.GeneratePasswordRequest();
on the admin/default.aspx in various spots with no luck. I tired putting it on the OrderSummary.ascx and OrderSummary.ascx.cs in various spots hoping that when you select an order number on the admin Dashboard page, it would run; but, no luck.

I am not a programmer; I don't know if there is something else I need to do besides posting this code somewhere to get this to run correctly. Excuse my ignorance, but if you could be explicit on how I can get this to run, I would appreciate it. Thanks.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Non-anonymous customer is now anonymous

Post by mazhar » Tue Nov 30, 2010 5:37 am

Here is the test page. Simply upload it into website/admin folder. Then upload it through its URL.

snap624
Lieutenant (LT)
Lieutenant (LT)
Posts: 58
Joined: Mon Jan 19, 2009 2:53 pm

Re: Non-anonymous customer is now anonymous

Post by snap624 » Wed Dec 01, 2010 8:29 pm

Fantastic! That works great! Thank you so much! I am still wondering, though, why this happened. This was our first Google Checkout order and I am wondering if that had anything to do with the problem we experienced.

Anyway...thanks again! :D

Post Reply