Hi,
On my ecommerce-solution, a customer is not allowed to order more than a specific quantity of a product, over time.
In order to achive this, I've added a custom product field, which holds the maximum quantity allowed for each product.
I already check the customers previous orders for the specific product, but I also need to intercept what the customer is about to add to the cart.
I've created a custom NotificationSubscriber, which subscribes to Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.Line.Added, but is it possible to subscribe to a notification before the product is added to the cart, as I would like to give them a warning just after they pressed the button, but before it is added to the cart.
I could set a limit on the quantity-box itself on the product page, but would like to use a NotificationSubscriber instead.
Any ideas?
Best regards
Kurt Moskjaer Andersen