Ok guys, you've got me racking my brain on this one. How do I get the Impersonated Customer object? Every time I reference ThisCustomer is comes back with the administrator.
Ok guys, you've got me racking my brain on this one. How do I get the Impersonated Customer object? Every time I reference ThisCustomer is comes back with the administrator.
LOL where are you trying to get (access) and use it?
and yes this is not a trival feature of the cart, so a bit hard to explain, but we can give specific advise if you give us more to go on.
yes. each time I look at this logic, I have to go refigure it out myself
AspDotNetStorefront
Shopping Cart
The mini cart.
what exactly are you trying to do? glad to advise, I just still don't quite get it...so the more you give us, the more we give you back
AspDotNetStorefront
Shopping Cart
I'm trying to access customer information from code behind. Standard customer declarations are resulting in the impersonator, I need the impersonated.
The reason: I've built an ajax add-to cart, and I'd like the minicart to update accordingly with each subsequent product added.
Is there an alternative to AspDotNetStorefrontCommon.Customer.Current that will do this?
Anyone? Impersonated customer.
How do I get the impersonated customer from code behind? Am I being to general?
Since I never got a response back from this, I thought I'd post my result. At first glance, this may seem difficult when it in-fact is quite simple.
If anyone find fault with this code, please let me know, but this method is working great for me.Code:var thisCustomer = Customer.Current; var possibleIGD = thisCustomer.ThisCustomerSession["IGD"]; if (possibleIGD != "") { thisCustomer = new Customer(new Guid(possibleIGD)); }
Robert
Robert Plummer
VisOp-Dev.com
Visual Interop Development