Hi,
I followed your instructions to prevent guests from buying products. However, it doesn’t work for me. My shop page and products pages use AJAX add-to-cart buttons.
*** Do you think you could update your plugin to work with AJAX add-to-cart buttons in a future release?
But even if that could work, it is still a workaround for me.
I would rather limit purchases for guests too because my checkout requires guests to login or enter details for a new account. I understand that a more convenient purchase experience (i.e. allowing users to start shopping before being forced to create an account or login) increases sales.
Not sure if this can easily be done, but ideally, the plugin would limit guests or logged-in users from adding too many items to the cart. Lets say I sell products A, B, C, D, E, F, G, H. Guests or logged in users can only buy 3 items of a particular category in a lifetime (e.g. items C, F and G).
It would be great if a registered user is logged out and adds items C, F, G. But after the user logs in at checkout, the plugin checks their past orders and detects that they also bought item A. So their cart (current order) would carry them over the lifetime limit of 3 items, and after logging in at checkout, they would see a notice that their current order is not allowed because it would put them over the total purchase limit and that they should remove 1 item from the cart to allow the purchase to proceed.