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 <div class="admin__table-wrapper">
11  <table class="data-table admin__table-primary order-invoice-tables">
12  <thead>
13  <tr class="headings">
14  <th class="col-product"><span><?= /* @escapeNotVerified */ __('Product') ?></span></th>
15  <th class="col-price"><span><?= /* @escapeNotVerified */ __('Price') ?></span></th>
16  <th class="col-qty"><span><?= /* @escapeNotVerified */ __('Qty') ?></span></th>
17  <th class="col-subtotal"><span><?= /* @escapeNotVerified */ __('Subtotal') ?></span></th>
18  <th class="col-tax"><span><?= /* @escapeNotVerified */ __('Tax Amount') ?></span></th>
19  <th class="col-discount"><span><?= /* @escapeNotVerified */ __('Discount Amount') ?></span></th>
20  <th class="col-total last"><span><?= /* @escapeNotVerified */ __('Row Total') ?></span></th>
21  </tr>
22  </thead>
23  <?php $_items = $block->getInvoice()->getAllItems() ?>
24  <?php $i = 0; foreach ($_items as $_item): ?>
25  <?php if ($_item->getOrderItem()->getParentItem()) {
26  continue;
27  } else {
28  $i++;
29  } ?>
30  <tbody class="<?= /* @escapeNotVerified */ $i%2 ? 'even' : 'odd' ?>">
31  <?= $block->getItemHtml($_item) ?>
32  <?= $block->getItemExtraInfoHtml($_item->getOrderItem()) ?>
33  </tbody>
34  <?php endforeach; ?>
35  </table>
36 </div>
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
__()
Definition: __.php:13
$block
Definition: block.php:8
$_item
Definition: default.phtml:11
$i
Definition: items.phtml:46