File tree Expand file tree Collapse file tree 1 file changed +15
-14
lines changed
app/code/Magento/Sales/view/frontend/templates/email/shipment Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Original file line number Diff line number Diff line change 9
9
?>
10
10
<?php $ _shipment = $ block ->getShipment () ?>
11
11
<?php $ _order = $ block ->getOrder () ?>
12
- <?php if ($ _shipment && $ _order && $ _shipment ->getAllTracks ()): ?>
13
- <br />
14
- <table class="shipment-track">
15
- <thead>
12
+ <?php $ trackCollection = $ _order ->getTracksCollection ($ _shipment ->getId ()) ?>
13
+ <?php if ($ _shipment && $ _order && $ trackCollection ): ?>
14
+ <br />
15
+ <table class="shipment-track">
16
+ <thead>
16
17
<tr>
17
18
<th><?= /* @escapeNotVerified */ __ ('Shipped By ' ) ?> </th>
18
19
<th><?= /* @escapeNotVerified */ __ ('Tracking Number ' ) ?> </th>
19
20
</tr>
20
- </thead>
21
- <tbody>
22
- <?php foreach ($ _order -> getTracksCollection ( $ _shipment -> getId ()) 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>
21
+ </thead>
22
+ <tbody>
23
+ <?php foreach ($ trackCollection as $ _item ): ?>
24
+ <tr>
25
+ <td><?= $ block ->escapeHtml ($ _item ->getTitle ()) ?> :</td>
26
+ <td><?= $ block ->escapeHtml ($ _item ->getNumber ()) ?> </td>
27
+ </tr>
28
+ <?php endforeach ?>
29
+ </tbody>
30
+ </table>
30
31
<?php endif ; ?>
You can’t perform that action at this time.
0 commit comments