Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
price.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php ?>
11 
12 <?php $_excl = $block->getShippingPriceExclTax(); ?>
13 <?php $_incl = $block->getShippingPriceInclTax(); ?>
14 <?php if ($block->displayShippingPriceExclTax()): ?>
15  <span class="price"><?= /* @escapeNotVerified */ $_excl ?></span>
16 <?php else: ?>
17 <?php if ($block->displayShippingBothPrices() && $_incl != $_excl): ?>
18  <span class="price-including-tax" data-label="<?= /* @escapeNotVerified */ __('Incl. Tax') ?>">
19 <?php endif; ?>
20  <span class="price"><?= /* @escapeNotVerified */ $_incl ?></span>
21 <?php if ($block->displayShippingBothPrices() && $_incl != $_excl): ?>
22  </span>
23 <?php endif; ?>
24 <?php endif; ?>
25 <?php if ($block->displayShippingBothPrices() && $_incl != $_excl): ?>
26  <span class="price-excluding-tax" data-label="<?= /* @escapeNotVerified */ __('Excl. Tax') ?>"><span class="price"><?= /* @escapeNotVerified */ $_excl ?></span></span>
27 <?php endif; ?>
$_incl
Definition: price.phtml:13
$block
Definition: block.php:8
endif
Definition: price.phtml:45
$_excl
Definition: price.phtml:12