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 <?php
13 $_order = $block->getOrder() ?>
14 <div class="admin__table-wrapper">
15  <table class="data-table admin__table-primary edit-order-table">
16  <thead>
17  <tr class="headings">
18  <?php $i = 0;
19  $columns = $block->getColumns();
20  $lastItemNumber = count($columns) ?>
21  <?php foreach ($columns as $columnName => $columnTitle):?>
22  <?php $i++; ?>
23  <th class="col-<?= /* @noEscape */ $columnName ?><?= /* @noEscape */ ($i === $lastItemNumber ? ' last' : '') ?>"><span><?= /* @noEscape */ $columnTitle ?></span></th>
24  <?php endforeach; ?>
25  </tr>
26  </thead>
27  <?php $_items = $block->getItemsCollection();?>
28  <?php $i = 0; foreach ($_items as $_item):?>
29  <?php if ($_item->getParentItem()) {
30  continue;
31  } else {
32  $i++;
33  }?>
34  <tbody class="<?= /* @noEscape */ $i%2 ? 'even' : 'odd' ?>">
35  <?= $block->getItemHtml($_item) ?>
36  <?= $block->getItemExtraInfoHtml($_item) ?>
37  </tbody>
38  <?php endforeach; ?>
39  </table>
40 </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
$parentItem $_order
Definition: default.phtml:12
$block
Definition: block.php:8
$_item
Definition: default.phtml:11
$columns
Definition: items.phtml:19
$i
Definition: items.phtml:46