Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
sidebar.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
10 ?>
11 <?php $_item = $block->getItem() ?>
12  <?php if ($block->displayPriceInclTax() || $block->displayBothPrices()): ?>
13  <span class="price-wrapper price-including-tax" data-label="<?= /* @escapeNotVerified */ __('Incl. Tax') ?>">
14  <?php $_incl = $_item->getPriceInclTax(); ?>
15  <?= /* @escapeNotVerified */ $this->helper('Magento\Checkout\Helper\Data')->formatPrice($_incl) ?>
16  </span>
17  <?php endif; ?>
18  <?php if ($block->displayPriceExclTax() || $block->displayBothPrices()): ?>
19  <span class="price-wrapper price-excluding-tax" data-label="<?= /* @escapeNotVerified */ __('Excl. Tax') ?>">
20  <?= /* @escapeNotVerified */ $this->helper('Magento\Checkout\Helper\Data')->formatPrice($_item->getCalculationPrice()) ?>
21  </span>
22  <?php endif; ?>
$block
Definition: block.php:8
$_item
Definition: default.phtml:11
endif
Definition: sidebar.phtml:22
$_incl