cancel
Showing results for 
Search instead for 
Did you mean: 

how to capture the add to cart event in magento modules

how to capture the add to cart event in magento modules

Hi their

I want to capture the add to cart event  into the Magento modules 

 

public function execute(EventObserver $observer)
    {
        $product = $observer->getEvent()->getProduct();

}