21 protected $_template =
'Magento_Shipping::order/shipment.phtml';
51 \
Magento\Payment\Helper\Data $paymentHelper,
54 $this->_paymentHelper = $paymentHelper;
57 parent::__construct($context,
$data);
58 $this->_isScopePrivate =
true;
66 $this->pageConfig->getTitle()->set(
__(
'Order # %1', $this->
getOrder()->getRealOrderId()));
67 $infoBlock = $this->_paymentHelper->getInfoBlock($this->
getOrder()->getPayment(), $this->
getLayout());
68 $this->
setChild(
'payment_info', $infoBlock);
86 return $this->_coreRegistry->registry(
'current_order');
97 return $this->
getUrl(
'*/*/history');
99 return $this->
getUrl(
'*/*/form');
110 return __(
'Back to My Orders');
112 return __(
'View Another Order');
121 return $this->
getUrl(
'*/*/invoice', [
'order_id' =>
$order->getId()]);
130 return $this->
getUrl(
'*/*/view', [
'order_id' =>
$order->getId()]);
139 return $this->
getUrl(
'*/*/creditmemo', [
'order_id' =>
$order->getId()]);
148 return $this->
getUrl(
'*/*/printShipment', [
'shipment_id' =>
$shipment->getId()]);
157 return $this->
getUrl(
'*/*/printShipment', [
'order_id' =>
$order->getId()]);
getPrintAllShipmentsUrl($order)
getPrintShipmentUrl($shipment)
__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=[])
getUrl($route='', $params=[])
getChildHtml($alias='', $useCache=true)
foreach($order->getItems() as $orderItem) $shipment