How to Ask User to get Login First when He/She does "Add To Cart"?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
what i want is to implement the functionality of login in checkout process, as when "Add to Card" button get clicked the login form appears and ask the user to please login to complete the checkout.. anybody know how to achieve it or any plugin for it?
4 years ago
Hello AbdulQayyum,

if you disable the Anonymous checkout allowed setting in the following location Configuration -> Settings -> Order settings, it will require all of the users to log in before they can continue to the checkout.

However, it does not work when you click the Add to cart button, but when you go to the Shopping cart - meaning you can add as many products to the cart before you actually get asked to log in. What happens is - you get redirected to the login page, and the login form doesn't just appear on the same page.

Best regards,
Valentin.
4 years ago
Thanks but i want to restrict user to do not add items in cart. first login and then
4 years ago
It might be going to far but you can block navigation unless logged in
Configuration -> Access Control
Disable “Public store. Allow navigation” for all profiles

Otherwise to achieve above you need to customise the Add to Cart function
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.