items.phtml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. // @codingStandardsIgnoreFile
  7. ?>
  8. <?php $_invoice = $block->getInvoice() ?>
  9. <?php $_order = $block->getOrder() ?>
  10. <?php if ($_invoice && $_order): ?>
  11. <table class="email-items">
  12. <thead>
  13. <tr>
  14. <th class="item-info">
  15. <?= /* @escapeNotVerified */ __('Items') ?>
  16. </th>
  17. <th class="item-qty">
  18. <?= /* @escapeNotVerified */ __('Qty') ?>
  19. </th>
  20. <th class="item-subtotal">
  21. <?= /* @escapeNotVerified */ __('Subtotal') ?>
  22. </th>
  23. </tr>
  24. </thead>
  25. <?php foreach ($_invoice->getAllItems() as $_item): ?>
  26. <?php if (!$_item->getOrderItem()->getParentItem()) : ?>
  27. <tbody>
  28. <?= $block->getItemHtml($_item) ?>
  29. </tbody>
  30. <?php endif; ?>
  31. <?php endforeach; ?>
  32. <tfoot class="order-totals">
  33. <?= $block->getChildHtml('invoice_totals') ?>
  34. </tfoot>
  35. </table>
  36. <?php endif; ?>