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 
9 ?>
10 <?php
13 $_item = $block->getItem();
14 ?>
15 
16 <?php if ($block->displayPriceExclTax() || $block->displayBothPrices()): ?>
17  <?php if ($block->displayBothPrices()): ?>
18  <span class="label"><?= /* @escapeNotVerified */ __('Excl. Tax') ?>:</span>
19  <?php endif; ?>
20  <?= /* @escapeNotVerified */ $block->formatPrice($block->getRowDisplayPriceExclTax()) ?>
21 
22 
23  <?php if ($this->helper('Magento\Weee\Helper\Data')->getApplied($_item)): ?>
24  <br />
25  <?php if ($block->displayPriceWithWeeeDetails()): ?>
26  <small>
27  <?php foreach ($this->helper('Magento\Weee\Helper\Data')->getApplied($_item) as $tax): ?>
28  <span class="nobr"><?= /* @escapeNotVerified */ $tax['title'] ?>: <?= /* @escapeNotVerified */ $block->formatPrice($tax['row_amount'], true, true) ?></span><br />
29  <?php endforeach; ?>
30  </small>
31  <?php endif; ?>
32 
33  <?php if ($block->displayFinalPrice()): ?>
34  <br />
35  <span class="nobr"><?= /* @escapeNotVerified */ __('Total') ?>:<br />
36  <?= /* @escapeNotVerified */ $block->formatPrice($block->getFinalRowDisplayPriceExclTax()) ?>
37  </span>
38  <?php endif; ?>
39  <?php endif; ?>
40 <?php endif; ?>
41 
42 <?php if ($block->displayPriceInclTax() || $block->displayBothPrices()): ?>
43  <?php if ($block->displayBothPrices()): ?>
44  <br /><span class="label"><?= /* @escapeNotVerified */ __('Incl. Tax') ?>:</span>
45  <?php endif; ?>
46  <?= /* @escapeNotVerified */ $block->formatPrice($block->getRowDisplayPriceInclTax()) ?>
47  <?php if ($this->helper('Magento\Weee\Helper\Data')->getApplied($_item)): ?>
48  <br />
49  <?php if ($block->displayPriceWithWeeeDetails()): ?>
50  <small>
51  <?php foreach ($this->helper('Magento\Weee\Helper\Data')->getApplied($_item) as $tax): ?>
52  <span class="nobr"><?= /* @escapeNotVerified */ $tax['title'] ?>: <?= /* @escapeNotVerified */ $block->formatPrice($tax['row_amount_incl_tax'], true, true) ?></span><br />
53  <?php endforeach; ?>
54  </small>
55  <?php endif; ?>
56 
57  <?php if ($block->displayFinalPrice()): ?>
58  <span class="nobr"><?= /* @escapeNotVerified */ __('Total Incl. Tax') ?>:<br />
59  <?= /* @escapeNotVerified */ $block->formatPrice($block->getFinalRowDisplayPriceInclTax()) ?>
60  </span>
61  <?php endif; ?>
62  <?php endif; ?>
63 <?php endif; ?>
$_item
Definition: row.phtml:11
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
__()
Definition: __.php:13
$block
Definition: block.php:8