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 $_creditmemo = $block->getCreditmemo() ?>
11 <?php $_order = $block->getOrder() ?>
12 <?php if ($_creditmemo && $_order): ?>
13  <table class="email-items">
14  <thead>
15  <tr>
16  <th class="item-info">
17  <?= /* @escapeNotVerified */ __('Items') ?>
18  </th>
19  <th class="item-qty">
20  <?= /* @escapeNotVerified */ __('Qty') ?>
21  </th>
22  <th class="item-subtotal">
23  <?= /* @escapeNotVerified */ __('Subtotal') ?>
24  </th>
25  </tr>
26  </thead>
27  <?php foreach ($_creditmemo->getAllItems() as $_item): ?>
28  <?php if (!$_item->getOrderItem()->getParentItem()) : ?>
29  <tbody>
30  <?= $block->getItemHtml($_item) ?>
31  </tbody>
32  <?php endif; ?>
33  <?php endforeach; ?>
34  <tfoot class="order-totals">
35  <?= $block->getChildHtml('creditmemo_totals') ?>
36  </tfoot>
37  </table>
38 <?php endif; ?>
if( $block->getQuote() ->hasVirtualItems())( 'Other items in your order') ?></strong >< a hrefforeach( $block->getVirtualQuoteItems() as $_item)(__( 'Product Name')) ?>"><? endforeach
Definition: items.phtml:31
$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