75 parent::__construct(
$data);
90 $subtotalAmount =
$totals[
'subtotal']->getValue();
93 'subtotalAmount' => $subtotalAmount,
94 'subtotal' => isset(
$totals[
'subtotal'])
95 ? $this->checkoutHelper->formatPrice($subtotalAmount)
99 'extra_actions' => $this->layout->createBlock(\
Magento\Catalog\Block\ShortcutButtons::class)->toHtml(),
101 'website_id' => $this->
getQuote()->getStore()->getWebsiteId()
112 if (
null === $this->quote) {
113 $this->quote = $this->checkoutSession->getQuote();
125 if (!$this->summeryCount) {
126 $this->summeryCount = $this->checkoutCart->getSummaryQty() ?: 0;
138 return $this->checkoutHelper->canOnepageCheckout() && !$this->
getQuote()->getHasError();
155 if (!
$item->getProduct()->isVisibleInSiteVisibility()) {
157 ?
$item->getOptionByCode(
'product_type')->getProduct()
158 :
$item->getProduct();
164 $urlDataObject = new \Magento\Framework\DataObject(
$products[
$product->getId()]);
165 $item->getProduct()->setUrlDataObject($urlDataObject);
167 $items[] = $this->itemPoolInterface->getItemData(
$item);
179 if ($this->getCustomQuote()) {
180 return $this->getCustomQuote()->getAllVisibleItems();
182 return $this->
getQuote()->getAllVisibleItems();
192 return $this->checkoutHelper->isAllowedGuestCheckout($this->checkoutSession->getQuote());
__construct(\Magento\Checkout\Model\Session $checkoutSession, \Magento\Catalog\Model\ResourceModel\Url $catalogUrl, \Magento\Checkout\Model\Cart $checkoutCart, \Magento\Checkout\Helper\Data $checkoutHelper, ItemPoolInterface $itemPoolInterface, \Magento\Framework\View\LayoutInterface $layout, array $data=[])
isPossibleOnepageCheckout()