/** * Quote object getter * * @return Ikantam_Buyback_Model_Quote */ public function getQuote() { if ($this->_quote === null) { return $this->_checkoutSession->getQuote(); } return $this->_quote; }
/** * Class constructor * Set customer already exists message */ public function __construct() { $this->_helper = Mage::helper('checkout'); $this->_customerEmailExistsMessage = $this->_helper->__('There is already a customer registered using this email address. Please login using this email address or enter a different email address to register your account.'); $this->_checkoutSession = Mage::getSingleton('checkout/session'); $this->_quote = $this->_checkoutSession->getQuote(); $this->_customerSession = Mage::getSingleton('customer/session'); }