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