Transfer cart when user logs in

Vote:
 

Hi.

It seems that episerver,  when a user logs in, automatically merges the content of the 2 carts (the anonymous and the one for the user). I haven't found information on this topic - is there any ?

Can this mechnism be disabled or custom-fittet in any way ? (We would like to overwrite, rather than merge the content).

Best regards

Carsten

#174318
Jan 24, 2017 13:06
Vote:
 

Hi,

That behavior is done by ProfileModule. If you want to you can write a module implements IHttpModule, which listens to certain events, such as AuthenticateRequest. Then you can do the cart overwrite there - then replace the registration of ProfileModule in web.config.

Regards,

/Q

#174322
Jan 24, 2017 13:53
Vote:
 

Hi, OK thx. I can't see where to mark your answer as the answer... ?

#174323
Jan 24, 2017 13:56
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.