Developer forum

Forum » Ecommerce - Standard features » Anonymous to authenticated cart and auto-impersonation

Anonymous to authenticated cart and auto-impersonation

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Guys,

I have a pretty complex one this time :)

We have a situation where we use impersonation for all acounts. This means that for every authenticated customer that can place an order should be impersonated by a login account first.

I know it sounds weird but it has a lot of sense in the actual use case.

What we have not considered when we made this decision is the scenario where a user starts a cart as anonymous and later on decides to authenticate.

In these case something weird happens because the cart is normally moved from the anonymous to the authenticated user upon first authentication.

In our case it means that the cart moves from anonymous to login user BEFORE the login user impersonates his designated customer account.

My question is, can we control in any way how the cart moves from anonymous to authenticated users?

Thanks,

Adrian


Replies

 
Nicolai Pedersen
Reply

Nope, you have to dig up the cart yourself and move it to the impersonated user.

BR Nicolai

 

You must be logged in to post in the forum