Close

force user to login while add new product into their shopping cart while using ajax cart plugin

tianyingchun
8 years ago
#12169 Quote
Avatar
  • 4
while using ajax cart plugin, we have strong requirement to force user to login or register before add items to cart. how to do this with using ajax cart plugin
tianyingchun
8 years ago
#12170 Quote
Avatar
  • 4
tianyingchun wrote:
while using ajax cart plugin, we have strong requirement to force user to login or register before add items to cart. how to do this with using ajax cart plugin


The bast way to provider configurations of ajaxcart admin panel.
iliyan.tanev
8 years ago
#12178 Quote
Avatar
  • 347
Hi,

You can use the ACL (Access Control List) for this. 

Go to Configuration -> Access Control List and on the bottom of the grid you will see an option named Public store. Enable shopping cart. Disable it for Guests and the customers that are not logged in won't be able to access the shopping cart and won't have the option to add products to it.

Hope this helps!
Regards,
Iliyan Tanev
Nop-Templates Dev Team