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 <?php if ($block->displayPriceInclTax() || $block->displayBothPrices()): ?>
14  <span class="price-including-tax" data-label="<?= $block->escapeHtml(__('Incl. Tax')) ?>">
15  <?php if ($block->displayPriceWithWeeeDetails()): ?>
16  <span class="cart-tax-total"
17  data-mage-init='{"taxToggle": {"itemTaxId" : "#unit-item-tax-details<?= /* @escapeNotVerified */ $item->getId() ?>"}}'>
18  <?php else: ?>
19  <span class="cart-price">
20  <?php endif; ?>
21  <?= /* @escapeNotVerified */ $block->formatPrice($block->getUnitDisplayPriceInclTax()) ?>
22  </span>
23 
24  <?php if ($this->helper('Magento\Weee\Helper\Data')->getApplied($item)): ?>
25  <span class="cart-tax-info" id="unit-item-tax-details<?= /* @escapeNotVerified */ $item->getId() ?>" style="display: none;">
26  <?php foreach ($this->helper('Magento\Weee\Helper\Data')->getApplied($item) as $tax): ?>
27  <span class="weee" data-label="<?= /* @escapeNotVerified */ $tax['title'] ?>">
28  <?= /* @escapeNotVerified */ $block->formatPrice($tax['amount_incl_tax'], true, true) ?>
29  </span>
30  <?php endforeach; ?>
31  </span>
32 
33  <?php if ($block->displayFinalPrice()): ?>
34  <span class="cart-tax-total"
35  data-mage-init='{"taxToggle": {"itemTaxId" : "#unit-item-tax-details<?= /* @escapeNotVerified */ $item->getId() ?>"}}'>
36  <span class="weee" data-label="<?= $block->escapeHtml(__('Total Incl. Tax')) ?>">
37  <?= /* @escapeNotVerified */ $block->formatPrice($block->getFinalUnitDisplayPriceInclTax()) ?>
38  </span>
39  </span>
40  <?php endif; ?>
41  <?php endif; ?>
42  </span>
43 <?php endif; ?>
44 
45 <?php if ($block->displayPriceExclTax() || $block->displayBothPrices()): ?>
46  <span class="price-excluding-tax" data-label="<?= $block->escapeHtml(__('Excl. Tax')) ?>">
47  <?php if ($block->displayPriceWithWeeeDetails()): ?>
48  <span class="cart-tax-total"
49  data-mage-init='{"taxToggle": {"itemTaxId" : "#eunit-item-tax-details<?= /* @escapeNotVerified */ $item->getId() ?>"}}'>
50  <?php else: ?>
51  <span class="cart-price">
52  <?php endif; ?>
53  <?= /* @escapeNotVerified */ $block->formatPrice($block->getUnitDisplayPriceExclTax()) ?>
54  </span>
55 
56  <?php if ($this->helper('Magento\Weee\Helper\Data')->getApplied($item)): ?>
57  <span class="cart-tax-info" id="eunit-item-tax-details<?= /* @escapeNotVerified */ $item->getId() ?>"
58  style="display: none;">
59  <?php foreach ($this->helper('Magento\Weee\Helper\Data')->getApplied($item) as $tax): ?>
60  <span class="weee" data-label="<?= /* @escapeNotVerified */ $tax['title'] ?>">
61  <?= /* @escapeNotVerified */ $block->formatPrice($tax['amount'], true, true) ?>
62  </span>
63  <?php endforeach; ?>
64  </span>
65 
66  <?php if ($block->displayFinalPrice()): ?>
67  <span class="cart-tax-total"
68  data-mage-init='{"taxToggle": {"itemTaxId" : "#eunit-item-tax-details<?= /* @escapeNotVerified */ $item->getId() ?>"}}'>
69  <span class="weee" data-label="<?= $block->escapeHtml(__('Total')) ?>">
70  <?= /* @escapeNotVerified */ $block->formatPrice($block->getFinalUnitDisplayPriceExclTax()) ?>
71  </span>
72  </span>
73  <?php endif; ?>
74  <?php endif; ?>
75  </span>
76 <?php endif; ?>
foreach( $this->main as $item) endforeach
Definition: side-menu.phtml:10
if( $form)() ?>< script > require(['jquery' mage mage
Definition: save.phtml:15
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