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->getPrintAllCreditmemosUrl($_order) ?>"
13  onclick="this.target='_blank'"
14  class="action print">
15  <span><?= /* @escapeNotVerified */ __('Print All Refunds') ?></span>
16  </a>
17 </div>
18 <?php foreach ($_order->getCreditmemosCollection() as $_creditmemo): ?>
19 <div class="order-title">
20  <strong><?= /* @escapeNotVerified */ __('Refund #') ?><?= /* @escapeNotVerified */ $_creditmemo->getIncrementId() ?> </strong>
21  <a href="<?= /* @escapeNotVerified */ $block->getPrintCreditmemoUrl($_creditmemo) ?>"
22  onclick="this.target='_blank'"
23  class="action print">
24  <span><?= /* @escapeNotVerified */ __('Print Refund') ?></span>
25  </a>
26 </div>
27 
28 <div class="table-wrapper order-items-creditmemo">
29  <table class="data table table-order-items creditmemo" id="my-refund-table-<?= /* @escapeNotVerified */ $_creditmemo->getId() ?>">
30  <caption class="table-caption"><?= /* @escapeNotVerified */ __('Items Refunded') ?></caption>
31  <thead>
32  <tr>
33  <th class="col name"><?= /* @escapeNotVerified */ __('Product Name') ?></th>
34  <th class="col sku"><?= /* @escapeNotVerified */ __('SKU') ?></th>
35  <th class="col price"><?= /* @escapeNotVerified */ __('Price') ?></th>
36  <th class="col qty"><?= /* @escapeNotVerified */ __('Qty') ?></th>
37  <th class="col subtotal"><?= /* @escapeNotVerified */ __('Subtotal') ?></th>
38  <th class="col discount"><?= /* @escapeNotVerified */ __('Discount Amount') ?></th>
39  <th class="col total"><?= /* @escapeNotVerified */ __('Row Total') ?></th>
40  </tr>
41  </thead>
42  <?php $_items = $_creditmemo->getAllItems(); ?>
43  <?php foreach ($_items as $_item): ?>
44  <?php if (!$_item->getOrderItem()->getParentItem()): ?>
45  <tbody>
46  <?= $block->getItemHtml($_item) ?>
47  </tbody>
48  <?php endif; ?>
49  <?php endforeach; ?>
50  <tfoot>
51  <?= $block->getTotalsHtml($_creditmemo) ?>
52  </tfoot>
53  </table>
54 </div>
55 <?= $block->getCommentsHtml($_creditmemo) ?>
56 <?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