track.phtml 934 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. // @codingStandardsIgnoreFile
  7. ?>
  8. <?php $_shipment = $block->getShipment() ?>
  9. <?php $_order = $block->getOrder() ?>
  10. <?php $trackCollection = $_order->getTracksCollection($_shipment->getId()) ?>
  11. <?php if ($_shipment && $_order && $trackCollection): ?>
  12. <br />
  13. <table class="shipment-track">
  14. <thead>
  15. <tr>
  16. <th><?= /* @escapeNotVerified */ __('Shipped By') ?></th>
  17. <th><?= /* @escapeNotVerified */ __('Tracking Number') ?></th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. <?php foreach ($trackCollection as $_item): ?>
  22. <tr>
  23. <td><?= $block->escapeHtml($_item->getTitle()) ?>:</td>
  24. <td><?= $block->escapeHtml($_item->getNumber()) ?></td>
  25. </tr>
  26. <?php endforeach ?>
  27. </tbody>
  28. </table>
  29. <?php endif; ?>