/** * Try to get the id of the customer * * @return int|null */ public function getCustomerId() { if (class_exists('Mage')) { return Mage::getSingleton('customer/session')->getCustomer()->getId(); } return parent::getCustomerId(); }
/** * Try to get the id of the customer * * @return int|null */ public function getCustomerId() { if (class_exists('Mage')) { return Mage::getSingleton('customer/session')->getCustomer()->getId(); } return parent::getCustomerId(); }