qty.phtml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. // @codingStandardsIgnoreFile
  7. ?>
  8. <?php if ($item = $block->getItem()): ?>
  9. <table class="qty-table">
  10. <tr>
  11. <th><?= $block->escapeHtml(__('Ordered')); ?></th>
  12. <td><?= /* @noEscape */ $item->getQtyOrdered()*1 ?></td>
  13. </tr>
  14. <?php if ((float) $item->getQtyInvoiced()): ?>
  15. <tr>
  16. <th><?= $block->escapeHtml(__('Invoiced')); ?></th>
  17. <td><?= /* @noEscape */ $item->getQtyInvoiced()*1 ?></td>
  18. </tr>
  19. <?php endif; ?>
  20. <?php if ((float) $item->getQtyShipped()): ?>
  21. <tr>
  22. <th><?= $block->escapeHtml(__('Shipped')); ?></th>
  23. <td><?= /* @noEscape */ $item->getQtyShipped()*1 ?></td>
  24. </tr>
  25. <?php endif; ?>
  26. <?php if ((float) $item->getQtyRefunded()): ?>
  27. <tr>
  28. <th><?= $block->escapeHtml(__('Refunded')); ?></th>
  29. <td><?= /* @noEscape */ $item->getQtyRefunded()*1 ?></td>
  30. </tr>
  31. <?php endif; ?>
  32. <?php if ((float) $item->getQtyCanceled()): ?>
  33. <tr>
  34. <th><?= $block->escapeHtml(__('Canceled')); ?></th>
  35. <td><?= /* @noEscape */ $item->getQtyCanceled()*1 ?></td>
  36. </tr>
  37. <?php endif; ?>
  38. </table>
  39. <?php endif; ?>