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 ($this->helper('Magento\Tax\Helper\Data')->displaySalesBothPrices() || $this->helper('Magento\Tax\Helper\Data')->displaySalesPriceExclTax()): ?>
17  <div class="price-excl-tax">
18  <?php if ($this->helper('Magento\Tax\Helper\Data')->displaySalesBothPrices()): ?>
19  <span class="label"><?= /* @escapeNotVerified */ __('Excl. Tax') ?>:</span>
20  <?php endif; ?>
21 
22  <?= /* @escapeNotVerified */ $block->displayPrices($_item->getBasePrice(), $_item->getPrice()) ?>
23  </div>
24 <?php endif; ?>
25 <?php if ($this->helper('Magento\Tax\Helper\Data')->displaySalesBothPrices() || $this->helper('Magento\Tax\Helper\Data')->displaySalesPriceInclTax()): ?>
26  <div class="price-incl-tax">
27  <?php if ($this->helper('Magento\Tax\Helper\Data')->displaySalesBothPrices()): ?>
28  <span class="label"><?= /* @escapeNotVerified */ __('Incl. Tax') ?>:</span>
29  <?php endif; ?>
30  <?php $_incl = $this->helper('Magento\Checkout\Helper\Data')->getPriceInclTax($_item); ?>
31  <?php $_baseIncl = $this->helper('Magento\Checkout\Helper\Data')->getBasePriceInclTax($_item); ?>
32 
33  <?= /* @escapeNotVerified */ $block->displayPrices($_baseIncl, $_incl) ?>
34 
35  </div>
36 <?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
$_baseIncl
Definition: unit.phtml:31
$_item
Definition: unit.phtml:11