예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function createEmptyCart()
 {
     /** @var $quoteIdMask \Magento\Quote\Model\QuoteIdMask */
     $quoteIdMask = $this->quoteIdMaskFactory->create();
     $cartId = $this->quoteManagement->createEmptyCart();
     $quoteIdMask->setQuoteId($cartId)->save();
     return $quoteIdMask->getMaskedId();
 }