Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
unit.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 if ($block->displayBothPrices()): ?>
18  <span class="label"><?= /* @escapeNotVerified */ __('Excl. Tax') ?>:</span>
19  <?php endif; ?>
20  <?= /* @escapeNotVerified */ $block->formatPrice($_item->getCalculationPrice()) ?>
21 <?php endif; ?>
22 
23 
24 <?php if ($block->displayPriceInclTax() || $block->displayBothPrices()): ?>
25  <?php if ($block->displayBothPrices()): ?>
26  <br /><span class="label"><?= /* @escapeNotVerified */ __('Incl. Tax') ?>:</span>
27  <?php endif; ?>
28  <?php $_incl = $this->helper('Magento\Checkout\Helper\Data')->getPriceInclTax($_item); ?>
29  <?= /* @escapeNotVerified */ $block->formatPrice($_incl) ?>
30 <?php endif; ?>
if( $this->helper( 'Magento\Tax\Helper\Data') ->displaySalesBothPrices()||$this->helper( 'Magento\Tax\Helper\Data') ->displaySalesPriceInclTax())( $this->helper( 'Magento\Tax\Helper\Data') ->displaySalesBothPrices())('Incl. Tax') ?> $_incl
Definition: unit.phtml:30
__()
Definition: __.php:13
if( $this->helper( 'Magento\Tax\Helper\Data') ->displaySalesBothPrices()||$this->helper( 'Magento\Tax\Helper\Data') ->displaySalesPriceExclTax())( $this->helper( 'Magento\Tax\Helper\Data') ->displaySalesBothPrices())('Excl. Tax') ?> endif
Definition: unit.phtml:22
$block
Definition: block.php:8
$_item
Definition: unit.phtml:11