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?
Non-anonymous customer is now anonymous
Re: Non-anonymous customer is now anonymous
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.I saw this discussion, but where do we add this code?
Re: Non-anonymous customer is now anonymous
Mazhar:
Sorry, but I cant' get this to work. I tried putting the following code:
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.
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();
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.
Re: Non-anonymous customer is now anonymous
Here is the test page. Simply upload it into website/admin folder. Then upload it through its URL.
Re: Non-anonymous customer is now anonymous
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!
Anyway...thanks again!
