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