Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
track.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php $_shipment = $block->getShipment() ?>
11 <?php $_order = $block->getOrder() ?>
12 <?php if ($_shipment && $_order && $_shipment->getAllTracks()): ?>
13 <br />
14 <table class="shipment-track">
15  <thead>
16  <tr>
17  <th><?= /* @escapeNotVerified */ __('Shipped By') ?></th>
18  <th><?= /* @escapeNotVerified */ __('Tracking Number') ?></th>
19  </tr>
20  </thead>
21  <tbody>
22  <?php foreach ($_shipment->getAllTracks() as $_item): ?>
23  <tr>
24  <td><?= $block->escapeHtml($_item->getTitle()) ?>:</td>
25  <td><?= $block->escapeHtml($_item->getNumber()) ?></td>
26  </tr>
27  <?php endforeach ?>
28  </tbody>
29 </table>
30 <?php endif; ?>
foreach( $this->main as $item) endforeach
Definition: side-menu.phtml:10
$parentItem $_order
Definition: default.phtml:12
__()
Definition: __.php:13
$block
Definition: block.php:8
$_item
Definition: default.phtml:11
endif
Definition: 404.phtml:116