Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
items.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php $_order = $block->getOrder() ?>
11 <div class="actions-toolbar">
12  <a href="<?= /* @escapeNotVerified */ $block->getPrintAllInvoicesUrl($_order) ?>"
13  target="_blank"
14  class="action print">
15  <span><?= /* @escapeNotVerified */ __('Print All Invoices') ?></span>
16  </a>
17 </div>
18 <?php foreach ($_order->getInvoiceCollection() as $_invoice): ?>
19 <div class="order-title">
20  <strong><?= /* @escapeNotVerified */ __('Invoice #') ?><?= /* @escapeNotVerified */ $_invoice->getIncrementId() ?></strong>
21  <a href="<?= /* @escapeNotVerified */ $block->getPrintInvoiceUrl($_invoice) ?>"
22  onclick="this.target='_blank'"
23  class="action print">
24  <span><?= /* @escapeNotVerified */ __('Print Invoice') ?></span>
25  </a>
26 </div>
27 <div class="table-wrapper table-order-items invoice">
28  <table class="data table table-order-items invoice" id="my-invoice-table-<?= /* @escapeNotVerified */ $_invoice->getId() ?>">
29  <caption class="table-caption"><?= /* @escapeNotVerified */ __('Items Invoiced') ?></caption>
30  <thead>
31  <tr>
32  <th class="col name"><?= /* @escapeNotVerified */ __('Product Name') ?></th>
33  <th class="col sku"><?= /* @escapeNotVerified */ __('SKU') ?></th>
34  <th class="col price"><?= /* @escapeNotVerified */ __('Price') ?></th>
35  <th class="col qty"><?= /* @escapeNotVerified */ __('Qty Invoiced') ?></th>
36  <th class="col subtotal"><?= /* @escapeNotVerified */ __('Subtotal') ?></th>
37  </tr>
38  </thead>
39  <?php $_items = $_invoice->getAllItems(); ?>
40  <?php foreach ($_items as $_item): ?>
41  <?php if (!$_item->getOrderItem()->getParentItem()) : ?>
42  <tbody>
43  <?= $block->getItemHtml($_item) ?>
44  </tbody>
45  <?php endif; ?>
46  <?php endforeach; ?>
47  <tfoot>
48  <?= $block->getInvoiceTotalsHtml($_invoice) ?>
49  </tfoot>
50  </table>
51 </div>
52 <?= $block->getInvoiceCommentsHtml($_invoice) ?>
53 <?php endforeach; ?>
if( $block->getQuote() ->hasVirtualItems())( 'Other items in your order') ?></strong >< a hrefforeach( $block->getVirtualQuoteItems() as $_item)(__( 'Product Name')) ?>"><? endforeach
Definition: items.phtml:31
$_items
Definition: items.phtml:27
$parentItem $_order
Definition: default.phtml:12
__()
Definition: __.php:13
$block
Definition: block.php:8
$_item
Definition: default.phtml:11
if( $type=='related' &&$canItemsAddToCart)( 'Check items to add to the cart or') ?>< button type endif
Definition: items.phtml:169