Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
row.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()) && !$item->getNoSubtotal()): ?>
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" : "#subtotal-item-tax-details<?= /* @escapeNotVerified */ $item->getId() ?>"}}'>
18  <?php else: ?>
19  <span class="cart-price">
20  <?php endif; ?>
21  <?= /* @escapeNotVerified */ $block->formatPrice($block->getRowDisplayPriceInclTax()) ?>
22  </span>
23 
24  <?php if ($this->helper('Magento\Weee\Helper\Data')->getApplied($item)): ?>
25  <div class="cart-tax-info" id="subtotal-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['row_amount_incl_tax'], true, true) ?>
29  </span>
30  <?php endforeach; ?>
31  </div>
32 
33  <?php if ($block->displayFinalPrice()): ?>
34  <span class="cart-tax-total"
35  data-mage-init='{"taxToggle": {"itemTaxId" : "#subtotal-item-tax-details<?= /* @escapeNotVerified */ $item->getId() ?>"}}'>
36  <span class="weee" data-label="<?= $block->escapeHtml(__('Total Incl. Tax')) ?>">
37  <?= /* @escapeNotVerified */ $block->formatPrice($block->getFinalRowDisplayPriceInclTax()) ?>
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" : "#esubtotal-item-tax-details<?= /* @escapeNotVerified */ $item->getId() ?>"}}'>
50  <?php else: ?>
51  <span class="cart-price">
52  <?php endif; ?>
53  <?= /* @escapeNotVerified */ $block->formatPrice($block->getRowDisplayPriceExclTax()) ?>
54  </span>
55 
56  <?php if ($this->helper('Magento\Weee\Helper\Data')->getApplied($item)): ?>
57  <span class="cart-tax-info" id="esubtotal-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['row_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" : "#esubtotal-item-tax-details<?= /* @escapeNotVerified */ $item->getId() ?>"}}'>
69  <span class="weee" data-label="<?= $block->escapeHtml(__('Total')) ?>">
70  <?= /* @escapeNotVerified */ $block->formatPrice($block->getFinalRowDisplayPriceExclTax()) ?>
71  </span>
72  </span>
73  <?php endif; ?>
74  <?php endif; ?>
75  </span>
76 <?php endif; ?>
if( $block->displayBothPrices()||$block->displayPriceExclTax())( $block->displayBothPrices())('Excl. Tax') ?> endif
Definition: row.phtml:21
foreach( $this->main as $item) endforeach
Definition: side-menu.phtml:10
if( $form)() ?>< script > require(['jquery' mage mage
Definition: save.phtml:15
$block
Definition: block.php:8
$item
Definition: row.phtml:11