items.phtml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. // @codingStandardsIgnoreFile
  7. ?>
  8. <?php if ($block->getQuote()->hasVirtualItems()): ?>
  9. <div class="block block-other">
  10. <div class="block-title">
  11. <strong><?= /* @escapeNotVerified */ __('Other items in your order') ?></strong>
  12. <a href="<?= /* @escapeNotVerified */ $block->getVirtualProductEditUrl() ?>" class="action edit"><span><?= /* @escapeNotVerified */ __('Edit Items') ?></span></a>
  13. </div>
  14. <div class="block-content">
  15. <p><?= /* @escapeNotVerified */ __('Shipping is not applicable.') ?></p>
  16. <div class="table-wrapper">
  17. <table class="items data table" id="unavailable-shipping-table">
  18. <caption class="table-caption"><?= /* @escapeNotVerified */ __('Other items in your order') ?></caption>
  19. <thead>
  20. <tr>
  21. <th class="col item" scope="col"><?= /* @escapeNotVerified */ __('Product Name') ?></th>
  22. <th class="col qty" scope="col"><?= /* @escapeNotVerified */ __('Qty') ?></th>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. <?php foreach ($block->getVirtualQuoteItems() as $_item): ?>
  27. <tr>
  28. <td class="col item" data-th="<?= $block->escapeHtml(__('Product Name')) ?>"><?= $block->getItemHtml($_item) ?></td>
  29. <td class="col qty" data-th="<?= $block->escapeHtml(__('Qty')) ?>"><?= /* @escapeNotVerified */ $_item->getQty() ?></td>
  30. </tr>
  31. <?php endforeach; ?>
  32. </tbody>
  33. </table>
  34. </div>
  35. </div>
  36. </div>
  37. <?php endif; ?>