20 class Success extends \Magento\Checkout\Block\Onepage\Success
37 \
Magento\Checkout\Model\Session $checkoutSession,
38 \
Magento\Sales\Model\Order\Config $orderConfig,
58 private function orderHasDownloadableProducts()
60 return $this->
isVisible($this->_checkoutSession->getLastRealOrder())
61 && $this->currentCustomer->getCustomerId()
62 ? $this->_checkoutSession->getHasDownloadableProducts(
true)
73 parent::prepareBlockData();
77 'order_has_downloadable' => $this->orderHasDownloadableProducts()
89 return $this->
getUrl(
'downloadable/customer/products', [
'_secure' =>
true]);
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Sales\Model\Order\Config $orderConfig, \Magento\Framework\App\Http\Context $httpContext, \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer, array $data=[])
getUrl($route='', $params=[])
getDownloadableProductsUrl()