60 $this->_customerSession = $customerSession;
61 $this->_checkoutSession = $checkoutSession;
62 parent::__construct($context,
$data);
63 $this->_isScopePrivate =
true;
73 return $this->getRendererListName() ? $this->
getLayout()->getBlock(
74 $this->getRendererListName()
94 throw new \RuntimeException(
'Renderer list for block "' . $this->
getNameInLayout() .
'" is not defined');
96 $overriddenTemplates = $this->getOverriddenTemplates() ?: [];
97 $template = isset($overriddenTemplates[
$type]) ? $overriddenTemplates[
$type] : $this->getRendererTemplate();
98 return $rendererList->getRenderer(
$type, self::DEFAULT_TYPE,
$template);
108 if (
null === $this->_quote) {
109 $this->_quote = $this->_checkoutSession->getQuote();
122 return $this->
getQuote()->getAllVisibleItems();
134 return $renderer->toHtml();
151 if (empty($this->_totals)) {
152 if ($this->
getQuote()->isVirtual()) {
153 $this->_totals = $this->
getQuote()->getBillingAddress()->getTotals();
155 $this->_totals = $this->
getQuote()->getShippingAddress()->getTotals();
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Checkout\Model\Session $checkoutSession, array $data=[])
getItemRenderer($type=null)
getItemHtml(\Magento\Quote\Model\Quote\Item $item)