grandtotal.phtml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. // @codingStandardsIgnoreFile
  7. /**
  8. * @var $block \Magento\Tax\Block\Checkout\Grandtotal
  9. */
  10. ?>
  11. <?php if ($block->includeTax() && $block->getTotalExclTax() >= 0):?>
  12. <tr class="grand totals excl">
  13. <th style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="mark" colspan="<?= /* @escapeNotVerified */ $block->getColspan() ?>" scope="row">
  14. <strong><?= /* @escapeNotVerified */ __('Grand Total Excl. Tax') ?></strong>
  15. </th>
  16. <td style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="amount" data-th="<?= $block->escapeHtml(__('Grand Total Excl. Tax')) ?>">
  17. <strong><?= /* @escapeNotVerified */ $this->helper('Magento\Checkout\Helper\Data')->formatPrice($block->getTotalExclTax()) ?></strong>
  18. </td>
  19. </tr>
  20. <?= /* @escapeNotVerified */ $block->renderTotals('taxes', $block->getColspan()) ?>
  21. <tr class="grand totals incl">
  22. <th style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="mark" colspan="<?= /* @escapeNotVerified */ $block->getColspan() ?>" scope="row">
  23. <strong><?= /* @escapeNotVerified */ __('Grand Total Incl. Tax') ?></strong>
  24. </th>
  25. <td style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="amount" data-th="<?= $block->escapeHtml(__('Grand Total Incl. Tax')) ?>">
  26. <strong><?= /* @escapeNotVerified */ $this->helper('Magento\Checkout\Helper\Data')->formatPrice($block->getTotal()->getValue()) ?></strong>
  27. </td>
  28. </tr>
  29. <?php else:?>
  30. <tr class="grand totals">
  31. <th style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="mark" colspan="<?= /* @escapeNotVerified */ $block->getColspan() ?>" scope="row">
  32. <strong><?= /* @escapeNotVerified */ $block->getTotal()->getTitle() ?></strong>
  33. </th>
  34. <td style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="amount" data-th="<?= $block->escapeHtml($block->getTotal()->getTitle()) ?>">
  35. <strong><?= /* @escapeNotVerified */ $this->helper('Magento\Checkout\Helper\Data')->formatPrice($block->getTotal()->getValue()) ?></strong>
  36. </td>
  37. </tr>
  38. <?php endif;?>