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
14 $_weeeHelper = $this->helper('Magento\Weee\Helper\Data');
15 
16 $_item = $block->getItem();
17 ?>
18 
19 <?php if ($block->displayBothPrices() || $block->displayPriceExclTax()): ?>
20  <div class="price-excl-tax">
21  <?php if ($block->displayBothPrices()): ?>
22  <span class="label"><?= /* @escapeNotVerified */ __('Excl. Tax') ?>:</span>
23  <?php endif; ?>
24 
25  <?= $block->getRowPriceExclTaxHtml() ?>
26 
27  <?php if ($this->helper('Magento\Weee\Helper\Data')->getApplied($_item)): ?>
28  <?php if ($block->displayPriceWithWeeeDetails()): ?>
29  <small>
30  <?php foreach ($this->helper('Magento\Weee\Helper\Data')->getApplied($_item) as $tax): ?>
31  <span class="nobr"><?= /* @escapeNotVerified */ $tax['title'] ?>: <?= /* @escapeNotVerified */ $block->displayPrices($tax['base_row_amount'], $tax['row_amount']) ?></span>
32  <?php endforeach; ?>
33  </small>
34  <?php endif; ?>
35 
36  <?php if ($block->displayFinalPrice()): ?>
37  <br />
38  <span class="nobr"><?= /* @escapeNotVerified */ __('Total') ?>:<br />
39  <?= $block->getFinalRowPriceExclTaxHtml() ?>
40  </span>
41  <?php endif; ?>
42  <?php endif; ?>
43  </div>
44 <?php endif; ?>
45 <?php if ($block->displayBothPrices() || $block->displayPriceInclTax()): ?>
46  <div class="price-incl-tax">
47  <?php if ($block->displayBothPrices()): ?>
48  <span class="label"><?= /* @escapeNotVerified */ __('Incl. Tax') ?>:</span>
49  <?php endif; ?>
50  <?= $block->getRowPriceInclTaxHtml() ?>
51 
52  <?php if ($this->helper('Magento\Weee\Helper\Data')->getApplied($_item)): ?>
53  <br />
54  <?php if ($block->displayPriceWithWeeeDetails()): ?>
55  <small>
56  <?php foreach ($this->helper('Magento\Weee\Helper\Data')->getApplied($_item) as $tax): ?>
57  <span class="nobr"><?= /* @escapeNotVerified */ $tax['title'] ?>: <?= /* @escapeNotVerified */ $block->displayPrices($tax['base_row_amount_incl_tax'], $tax['row_amount_incl_tax']) ?></span>
58  <?php endforeach; ?>
59  </small>
60  <?php endif; ?>
61 
62  <?php if ($block->displayFinalPrice()): ?>
63  <br />
64  <span class="nobr"><?= /* @escapeNotVerified */ __('Total') ?>:<br />
65  <?= $block->getFinalRowPriceInclTaxHtml() ?>
66  </span>
67  <?php endif; ?>
68  <?php endif; ?>
69  </div>
70 <?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
$_weeeHelper
Definition: row.phtml:14