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 
11 $_item = $block->getItem();
12 ?>
13 
14 <?php if ($block->displayPriceInclTax() || $block->displayBothPrices()): ?>
15  <span class="price-including-tax" data-label="<?= $block->escapeHtml(__('Incl. Tax')) ?>">
16  <?php $_incl = $_item->getPriceInclTax(); ?>
17  <span class="cart-price">
18  <?= /* @escapeNotVerified */ $block->formatPrice($_incl) ?>
19  </span>
20  </span>
21 <?php endif; ?>
22 
23 <?php if ($block->displayPriceExclTax() || $block->displayBothPrices()): ?>
24  <span class="price-excluding-tax" data-label="<?= $block->escapeHtml(__('Excl. Tax')) ?>">
25  <span class="cart-price">
26  <?= /* @escapeNotVerified */ $block->formatPrice($block->getItemDisplayPriceExclTax()) ?>
27  </span>
28  </span>
29 <?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
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