Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
default.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php $_item = $block->getItem() ?>
11 <?php $_order = $block->getItem()->getOrder(); ?>
12 <tr>
13  <td class="item-info<?php if ($block->getItemOptions()): ?> has-extra<?php endif; ?>">
14  <p class="product-name"><?= $block->escapeHtml($_item->getName()) ?></p>
15  <p class="sku"><?= /* @escapeNotVerified */ __('SKU') ?>: <?= $block->escapeHtml($block->getSku($_item)) ?></p>
16  <?php if ($block->getItemOptions()): ?>
17  <dl>
18  <?php foreach ($block->getItemOptions() as $option): ?>
19  <dt><strong><em><?= /* @escapeNotVerified */ $option['label'] ?></em></strong></dt>
20  <dd>
21  <?= /* @escapeNotVerified */ nl2br($option['value']) ?>
22  </dd>
23  <?php endforeach; ?>
24  </dl>
25  <?php endif; ?>
26  <?php $addInfoBlock = $block->getProductAdditionalInformationBlock(); ?>
27  <?php if ($addInfoBlock) :?>
28  <?= $addInfoBlock->setItem($_item->getOrderItem())->toHtml() ?>
29  <?php endif; ?>
30  <?= $block->escapeHtml($_item->getDescription()) ?>
31  </td>
32  <td class="item-qty"><?= /* @escapeNotVerified */ $_item->getQty() * 1 ?></td>
33  <td class="item-price">
34  <?= /* @escapeNotVerified */ $block->getItemPrice($_item->getOrderItem()) ?>
35  </td>
36 </tr>
$option
Definition: default.phtml:8
$parentItem $_order
Definition: default.phtml:12
__()
Definition: __.php:13
$block
Definition: block.php:8
endforeach
Definition: default.phtml:72
$_item
Definition: default.phtml:11
if( $_item->getOrderItem() ->getParentItem())( $_item) ?><?php if( $_prevOptionId ! $_prevOptionId endif
Definition: default.phtml:41
$addInfoBlock
Definition: default.phtml:63