Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
form.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
11 $order = $block->getShipment()->getOrder();
12 ?>
13 <?= $block->getChildHtml('order_info'); ?>
14 <section class="admin__page-section order-shipment-billing-shipping">
15  <div class="admin__page-section-title">
16  <span class="title"><?= $block->escapeHtml(__('Payment &amp; Shipping Method')); ?></span>
17  </div>
18  <div class="admin__page-section-content">
19  <div class="admin__page-section-item order-payment-method">
20  <div class="admin__page-section-item-title">
21  <span class="title"><?= $block->escapeHtml(__('Payment Information')); ?></span>
22  </div>
23  <div class="admin__page-section-item-content">
24  <div><?= $block->getChildHtml('order_payment') ?></div>
25  <div class="order-payment-currency">
26  <?= $block->escapeHtml(__('The order was placed using %1.', $order->getOrderCurrencyCode())); ?>
27  </div>
28  </div>
29  </div>
30 
31  <div class="admin__page-section-item order-shipping-address">
32  <div class="admin__page-section-item-title">
33  <span class="title"><?= $block->escapeHtml(__('Shipping and Tracking Information')); ?></span>
34  </div>
35  <div class="admin__page-section-item-content">
36  <div class="shipping-description-wrapper">
37  <?php if ($block->getShipment()->getTracksCollection()->count()): ?>
38  <p>
39  <a href="#" id="linkId" onclick="popWin('<?= $block->escapeUrl($this->helper(\Magento\Shipping\Helper\Data::class)->getTrackingPopupUrlBySalesModel($block->getShipment())); ?>','trackshipment','width=800,height=600,resizable=yes,scrollbars=yes')"
40  title="<?= $block->escapeHtml(__('Track this shipment')); ?>">
41  <?= $block->escapeHtml(__('Track this shipment')); ?>
42  </a>
43  </p>
44  <?php endif; ?>
45  <div class="shipping-description-title">
46  <?= $block->escapeHtml($order->getShippingDescription()); ?>
47  </div>
48 
49  <?= $block->escapeHtml(__('Total Shipping Charges')); ?>:
50 
51  <?php if ($this->helper(\Magento\Tax\Helper\Data::class)->displayShippingPriceIncludingTax()): ?>
52  <?php $excl = $block->displayShippingPriceInclTax($order); ?>
53  <?php else: ?>
54  <?php $excl = $block->displayPriceAttribute('shipping_amount', false, ' '); ?>
55  <?php endif; ?>
56  <?php $incl = $block->displayShippingPriceInclTax($order); ?>
57 
58  <?= /* @noEscape */ $excl; ?>
59  <?php if ($this->helper(\Magento\Tax\Helper\Data::class)->displayShippingBothPrices() && $incl != $excl): ?>
60  (<?= $block->escapeHtml(__('Incl. Tax')); ?> <?= /* @noEscape */ $incl; ?>)
61  <?php endif; ?>
62  </div>
63 
64  <p>
65  <?php if ($block->canCreateShippingLabel()): ?>
66  <?= /* @noEscape */ $block->getCreateLabelButton(); ?>
67  <?php endif ?>
68  <?php if ($block->getShipment()->getShippingLabel()): ?>
69  <?= /* @noEscape */ $block->getPrintLabelButton(); ?>
70  <?php endif ?>
71  <?php if ($block->getShipment()->getPackages()): ?>
72  <?= /* @noEscape */ $block->getShowPackagesButton(); ?>
73  <?php endif ?>
74  </p>
75  <?= $block->getChildHtml('shipment_tracking'); ?>
76 
77  <?= $block->getChildHtml('shipment_packaging'); ?>
78  <script>
79  require([
80  'jquery',
81  'prototype'
82  ], function (jQuery) {
83  var setCallbacks = function () {
84  window.packaging.setConfirmPackagingCallback(function () {
85  window.packaging.sendCreateLabelRequest();
86  });
87  window.packaging.setLabelCreatedCallback(function () {
88  setLocation("<?php echo $block->escapeUrl($block->getUrl(
89  'adminhtml/order_shipment/view',
90  ['shipment_id' => $block->getShipment()->getId()])
91  ); ?>");
92  });
93  };
94 
95  if (jQuery(document).data('packagingInited')) {
96  setCallbacks();
97  } else {
98  jQuery(document).on('packaging:inited', setCallbacks);
99  }
100  });
101  </script>
102  </div>
103  </div>
104  </div>
105 </section>
106 <div><?= $block->getChildHtml('extra_shipment_info') ?></div>
107 
108 <section class="admin__page-section">
109  <div class="admin__page-section-title">
110  <span class="title"><?= $block->escapeHtml(__('Items Shipped')); ?></span>
111  </div>
112  <?= $block->getChildHtml('shipment_items'); ?>
113 </section>
114 
115 <section class="admin__page-section">
116  <div class="admin__page-section-title">
117  <span class="title"><?= $block->escapeHtml(__('Order Total')); ?></span>
118  </div>
119  <div class="admin__page-section-content">
120  <?= $block->getChildHtml('shipment_packed'); ?>
121 
122  <div class="admin__page-section-item order-comments-history">
123  <div class="admin__page-section-item-title">
124  <span class="title"><?= $block->escapeHtml(__('Shipment History')); ?></span>
125  </div>
126  <div class="admin__page-section-item-content"><?= $block->getChildHtml('order_comments'); ?></div>
127  </div>
128  </div>
129 </section>
endif
Definition: form.phtml:34
__()
Definition: __.php:13
$incl
Definition: form.phtml:56
$block
Definition: block.php:8
$order
Definition: form.phtml:11
jQuery('.store-switcher .dropdown-menu li a').each(function()
Definition: switcher.phtml:203