Try our conversational search powered by Generative AI!

Allow anonymous access to add items in cart but ask them to mandatorily sign in during checkout


I need to implement above flow using mvc, angular and episerver? If anyone has any idea please share it

Jun 23, 2020 11:00

Carts can be accessed by anonymous users without problem (as long as you enable AnonymousIdentificationModule in ASP.NET)

To force users to log in, you can just make sure your action in your checkout controller is marked with Authorize attribute. That'd redirect users to log in page, if they are not logged in

Jun 23, 2020 14:29
Dhanush - Jun 29, 2020 11:14
How can i carry all the details related to the transaction until signing in through some context and link to user context later?
* 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.