예제 #1
0
파일: Cart.php 프로젝트: kid17/magento2
 /**
  * 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;
 }
예제 #3
0
 /**
  * Check if guest checkout is allowed
  *
  * @return bool
  */
 public function isGuestCheckoutAllowed()
 {
     return $this->checkoutHelper->isAllowedGuestCheckout($this->checkoutSession->getQuote());
 }