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