예제 #1
0
파일: Onepage.php 프로젝트: pcuervo/gadfy
 /**
  * Quote object getter
  *
  * @return Ikantam_Buyback_Model_Quote
  */
 public function getQuote()
 {
     if ($this->_quote === null) {
         return $this->_checkoutSession->getQuote();
     }
     return $this->_quote;
 }
예제 #2
0
 /**
  * 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');
 }