Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
items.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php ?>
11 <?php $_order = $block->getOrder() ?>
12 <div class="actions-toolbar">
13  <?php if ($_order->getTracksCollection()->count()) : ?>
14  <?= $block->getChildHtml('track-all-link') ?>
15  <?php endif; ?>
16  <a href="<?= /* @escapeNotVerified */ $block->getPrintAllShipmentsUrl($_order) ?>"
17  onclick="this.target='_blank'"
18  class="action print">
19  <span><?= /* @escapeNotVerified */ __('Print All Shipments') ?></span>
20  </a>
21 </div>
22 <?php foreach ($_order->getShipmentsCollection() as $_shipment): ?>
23 <div class="order-title">
24  <strong><?= /* @escapeNotVerified */ __('Shipment #') ?><?= /* @escapeNotVerified */ $_shipment->getIncrementId() ?></strong>
25  <a href="<?= /* @escapeNotVerified */ $block->getPrintShipmentUrl($_shipment) ?>"
26  onclick="this.target='_blank'"
27  class="action print">
28  <span><?= /* @escapeNotVerified */ __('Print Shipment') ?></span>
29  </a>
30  <a href="#"
31  data-mage-init='{"popupWindow": {"windowURL":"<?= /* @escapeNotVerified */ $this->helper('Magento\Shipping\Helper\Data')->getTrackingPopupUrlBySalesModel($_shipment) ?>","windowName":"trackshipment","width":800,"height":600,"top":0,"left":0,"resizable":1,"scrollbars":1}}'
32  title="<?= /* @escapeNotVerified */ __('Track this shipment') ?>"
33  class="action track">
34  <span><?= /* @escapeNotVerified */ __('Track this shipment') ?></span>
35  </a>
36 </div>
37 <?php $tracks = $_shipment->getTracksCollection(); ?>
38 <?php if ($tracks->count()): ?>
39  <dl class="order-tracking" id="my-tracking-table-<?= /* @escapeNotVerified */ $_shipment->getId() ?>">
40  <dt class="tracking-title">
41  <?= /* @escapeNotVerified */ __('Tracking Number(s):') ?>
42  </dt>
43  <dd class="tracking-content">
44  <?php
45  $i = 1;
46  $_size = $tracks->count();
47  foreach ($tracks as $track): ?>
48  <?php if ($track->isCustom()): ?><?= $block->escapeHtml($track->getNumber()) ?><?php else: ?><a
49  href="#"
50  data-mage-init='{"popupWindow": {"windowURL":"<?= /* @escapeNotVerified */ $this->helper('Magento\Shipping\Helper\Data')->getTrackingPopupUrlBySalesModel($track) ?>","windowName":"trackorder","width":800,"height":600,"left":0,"top":0,"resizable":1,"scrollbars":1}}'
51  class="action track"><span><?= $block->escapeHtml($track->getNumber()) ?></span>
52  </a><?php endif; ?><?php if ($i != $_size): ?>, <?php endif; ?>
53  <?php $i++;
55  </dd>
56  </dl>
57 <?php endif; ?>
58 <div class="table-wrapper order-items-shipment">
59  <table class="data table table-order-items shipment" id="my-shipment-table-<?= /* @escapeNotVerified */ $_shipment->getId() ?>">
60  <caption class="table-caption"><?= /* @escapeNotVerified */ __('Items Shipped') ?></caption>
61  <thead>
62  <tr>
63  <th class="col name"><?= /* @escapeNotVerified */ __('Product Name') ?></th>
64  <th class="col sku"><?= /* @escapeNotVerified */ __('SKU') ?></th>
65  <th class="col qty"><?= /* @escapeNotVerified */ __('Qty Shipped') ?></th>
66  </tr>
67  </thead>
68  <?php $_items = $_shipment->getAllItems(); ?>
69  <?php foreach ($_items as $_item): ?>
70  <?php if (!$_item->getOrderItem()->getParentItem()) : ?>
71  <tbody>
72  <?= $block->getItemHtml($_item) ?>
73  </tbody>
74  <?php endif; ?>
75  <?php endforeach; ?>
76  </table>
77 </div>
78 <?= $block->getCommentsHtml($_shipment) ?>
79 <?php endforeach; ?>
foreach( $_order->getShipmentsCollection() as $_shipment)( 'Shipment #') ?><? $tracks
Definition: items.phtml:37
$track
Definition: details.phtml:12
if( $block->getQuote() ->hasVirtualItems())( 'Other items in your order') ?></strong >< a hrefforeach( $block->getVirtualQuoteItems() as $_item)(__( 'Product Name')) ?>"><? endforeach
Definition: items.phtml:31
$_items
Definition: items.phtml:27
if( $form)() ?>< script > require(['jquery' mage mage
Definition: save.phtml:15
$parentItem $_order
Definition: default.phtml:12
__()
Definition: __.php:13
$_size
Definition: items.phtml:46
$block
Definition: block.php:8
$_item
Definition: default.phtml:11
if( $type=='related' &&$canItemsAddToCart)( 'Check items to add to the cart or') ?>< button type endif
Definition: items.phtml:169
$i
Definition: items.phtml:46