Is there an event after the add to cart button is clicked but before the cart is saved? I need this for validation of product options so I can throw an exception if the validaiton failed.
There is an event after the cart is saved in Mage_Checkout_CartController:
array('product' => $product, 'request' => $this->getRequest(), 'response' => $this->getResponse())
But I need an event before the cart is saved. The closest I find is the ‘quote_save_before’ event but this is not ideal as it does not indicate the last added product.
If none is available, I’d like to request for an event ‘checkout_cart_add_product_before’, with the same params as ‘checkout_cart_add_product_complete’.