I use custom plugin for onBeforeCartUpdate event to perform some checks.
If checks fail, then I set $do to false and enqueue a message for the user.
However, the ajax cart popup appears anyway and notifies the user that the product has been successfully added to the cart, which is of course wrong.
How can I prevent the Popup or even better customize the poput text that the product is NOT added to the car.
Or display a custom popup as it is used for the custom fileds if e.q. a mandatory field is not filled.
if I can interact on that level, the popup would not be fired..
Regards