Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
row.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php
13 $_item = $block->getItem();
15 $_order = $_item->getOrder();
16 ?>
17 
18 <?php if ($block->displayPriceExclTax() || $block->displayBothPrices()): ?>
19  <?php if ($block->displayBothPrices()): ?>
20  <span class="label"><?= /* @escapeNotVerified */ __('Excl. Tax') ?>:</span>
21  <?php endif; ?>
22  <?= /* @escapeNotVerified */ $_order->formatPrice($_item->getRowTotal()) ?>
23 <?php endif; ?>
24 
25 
26 <?php if ($block->displayPriceInclTax() || $block->displayBothPrices()): ?>
27  <?php if ($block->displayBothPrices()): ?>
28  <br /><span class="label"><?= /* @escapeNotVerified */ __('Incl. Tax') ?>:</span>
29  <?php endif; ?>
30  <?php $_incl = $this->helper('Magento\Checkout\Helper\Data')->getSubtotalInclTax($_item); ?>
31  <?= /* @escapeNotVerified */ $_order->formatPrice($_incl) ?>
32 <?php endif; ?>
$_item
Definition: row.phtml:11
if( $block->displayBothPrices()||$block->displayPriceExclTax())( $block->displayBothPrices())('Excl. Tax') ?> endif
Definition: row.phtml:21
__()
Definition: __.php:13
$block
Definition: block.php:8
if( $block->displayBothPrices()||$block->displayPriceInclTax())( $block->displayBothPrices())('Incl. Tax') ?> $_incl
Definition: row.phtml:29
$_order
Definition: row.phtml:16