helper = $helper; parent::__construct($context, $data); $this->_isScopePrivate = true; } /** * @return string */ public function getCheckoutUrl() { return $this->getUrl('multishipping/checkout', ['_secure' => true]); } /** * @return \Magento\Quote\Model\Quote */ public function getQuote() { return $this->helper->getQuote(); } /** * @return string */ public function _toHtml() { if (!$this->helper->isMultishippingCheckoutAvailable()) { return ''; } return parent::_toHtml(); } }