/** * Retrieve customer model object * @param bool $forceReload * @param bool $useSetStore * @return Mage_Customer_Model_Customer */ public function getCustomer($forceReload = false, $useSetStore = false) { if (is_null($this->_customer) || $forceReload) { $this->_customer = Mage::getModel('customer/customer'); if ($useSetStore && $this->getStore()->getId()) { $this->_customer->setStore($this->getStore()); } if ($customerId = $this->getCustomerId()) { $this->_customer->load($customerId); } } return $this->_customer; }