Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
grandtotal.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
13 ?>
14 <?php if ($block->includeTax() && $block->getTotalExclTax() >= 0):?>
15 <tr class="row-totals">
16  <td style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="admin__total-mark" colspan="<?= /* @escapeNotVerified */ $block->getColspan() ?>">
17  <strong><?= /* @escapeNotVerified */ __('Grand Total Excl. Tax') ?></strong>
18  </td>
19  <td style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="admin__total-amount">
20  <strong><?= /* @escapeNotVerified */ $block->formatPrice($block->getTotalExclTax()) ?></strong>
21  </td>
22 </tr>
23 <?= /* @escapeNotVerified */ $block->renderTotals('taxes', $block->getColspan()) ?>
24 <tr class="row-totals">
25  <td style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="admin__total-mark" colspan="<?= /* @escapeNotVerified */ $block->getColspan() ?>">
26  <strong><?= /* @escapeNotVerified */ __('Grand Total Incl. Tax') ?></strong>
27  </td>
28  <td style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="admin__total-amount">
29  <strong><?= /* @escapeNotVerified */ $block->formatPrice($block->getTotal()->getValue()) ?></strong>
30  </td>
31 </tr>
32 <?php else:?>
33 <tr class="row-totals">
34  <td style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="admin__total-mark" colspan="<?= /* @escapeNotVerified */ $block->getColspan() ?>">
35  <strong><?= /* @escapeNotVerified */ $block->getTotal()->getTitle() ?></strong>
36  </td>
37  <td style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="admin__total-amount">
38  <strong><?= /* @escapeNotVerified */ $block->formatPrice($block->getTotal()->getValue()) ?></strong>
39  </td>
40 </tr>
41 <?php endif;?>
__()
Definition: __.php:13
$block
Definition: block.php:8
endif
Definition: 404.phtml:116