load(1); if($model->getData('enableUpsells')==1){ $request = $observer->getEvent()->getRequest(); $url = Mage::getUrl('awext/index/upsells'); Mage::getSingleton('core/session')->addSuccess('Product Added to Cart!'); $request->setParam('return_url',$url); }else{ return; } } public function customerRegisterData($observer=null){ $event = $observer->getEvent(); $customer = $event->getCustomer(); $email = $customer->getEmail(); Mage::getSingleton('core/session')->setAddWishEmail($email); } public function addwishHeader($observer=null){ $update=Mage::getSingleton('core/layout')->getUpdate(); $update->addHandle('addwish_head_add'); } public function getbillingData($observer=null){ $addressObject=$observer->getEvent()->getQuoteAddress(); $quote = $observer->getEvent()->getQuoteAddress()->getQuote(); $email=$quote->getBillingAddress()->getEmail(); Mage::getSingleton('core/session')->setAddWishEmail($email); } } ?>