Example #1
0
 /**
  * Get active quote
  *
  * @return \Magento\Quote\Model\Quote
  */
 protected function getQuote()
 {
     if (null === $this->quote) {
         $this->quote = $this->checkoutSession->getQuote();
     }
     return $this->quote;
 }
 /**
  * Get active quote
  *
  * @return Quote
  */
 public function getQuote()
 {
     if (null === $this->_quote) {
         $this->_quote = $this->_checkoutSession->getQuote();
     }
     return $this->_quote;
 }
Example #3
0
 /**
  * Check if guest checkout is allowed
  *
  * @return bool
  */
 public function isGuestCheckoutAllowed()
 {
     return $this->checkoutHelper->isAllowedGuestCheckout($this->checkoutSession->getQuote());
 }