21 protected $_template =
'Magento_Sales::order/view.phtml';
55 $this->_paymentHelper = $paymentHelper;
58 parent::__construct($context,
$data);
59 $this->_isScopePrivate =
true;
67 $this->pageConfig->getTitle()->set(
__(
'Order # %1', $this->
getOrder()->getRealOrderId()));
68 $infoBlock = $this->_paymentHelper->getInfoBlock($this->
getOrder()->getPayment(), $this->
getLayout());
69 $this->
setChild(
'payment_info', $infoBlock);
87 return $this->_coreRegistry->registry(
'current_order');
97 if ($this->httpContext->getValue(Context::CONTEXT_AUTH)) {
98 return $this->
getUrl(
'*/*/history');
100 return $this->
getUrl(
'*/*/form');
110 if ($this->httpContext->getValue(Context::CONTEXT_AUTH)) {
111 return __(
'Back to My Orders');
113 return __(
'View Another Order');
122 return $this->
getUrl(
'*/*/invoice', [
'order_id' =>
$order->getId()]);
131 return $this->
getUrl(
'*/*/shipment', [
'order_id' =>
$order->getId()]);
140 return $this->
getUrl(
'*/*/creditmemo', [
'order_id' =>
$order->getId()]);
getUrl($route='', $params=[])
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\App\Http\Context $httpContext, \Magento\Payment\Helper\Data $paymentHelper, array $data=[])
getChildHtml($alias='', $useCache=true)