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

Vote:
 

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

#224600
Jun 23, 2020 11:00
Vote:
 

Carts can be accessed by anonymous users without problem (as long as you enable AnonymousIdentificationModule in ASP.NET) https://docs.microsoft.com/en-us/dotnet/api/system.web.security.anonymousidentificationmodule?view=netframework-4.8

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

#224623
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.