You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

58 lines
2.7 KiB

  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * @var $block \Magento\Tax\Block\Checkout\Grandtotal
  8. * @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer
  9. */
  10. ?>
  11. <?php
  12. $style = $block->escapeHtmlAttr($block->getStyle());
  13. $colspan = (int) $block->getColspan();
  14. /** @var \Magento\Checkout\Helper\Data $checkoutHelper */
  15. $checkoutHelper = $block->getData('checkoutHelper');
  16. ?>
  17. <?php if ($block->includeTax() && $block->getTotalExclTax() >= 0): ?>
  18. <tr class="grand totals excl">
  19. <th class="mark" colspan="<?= /* @noEscape */ $colspan ?>" scope="row">
  20. <strong><?= $block->escapeHtml(__('Grand Total Excl. Tax')) ?></strong>
  21. </th>
  22. <td class="amount" data-th="<?= $block->escapeHtmlAttr(__('Grand Total Excl. Tax')) ?>">
  23. <strong><?= /* @noEscape */ $checkoutHelper->formatPrice($block->getTotalExclTax()) ?></strong>
  24. </td>
  25. </tr>
  26. <?php if ($style): ?>
  27. <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.grand.totals.excl th.mark') ?>
  28. <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.grand.totals.excl td.amount') ?>
  29. <?php endif; ?>
  30. <?= /* @noEscape */ $block->renderTotals('taxes', $colspan) ?>
  31. <tr class="grand totals incl">
  32. <th class="mark" colspan="<?= /* @noEscape */ $colspan ?>" scope="row">
  33. <strong><?= $block->escapeHtml(__('Grand Total Incl. Tax')) ?></strong>
  34. </th>
  35. <td class="amount" data-th="<?= $block->escapeHtmlAttr(__('Grand Total Incl. Tax')) ?>">
  36. <strong><?= /* @noEscape */ $checkoutHelper->formatPrice($block->getTotal()->getValue()) ?></strong>
  37. </td>
  38. </tr>
  39. <?php if ($style): ?>
  40. <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.grand.totals.incl th.mark') ?>
  41. <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.grand.totals.incl td.amount') ?>
  42. <?php endif; ?>
  43. <?php else: ?>
  44. <tr class="grand totals">
  45. <th class="mark" colspan="<?= /* @noEscape */ $colspan ?>" scope="row">
  46. <strong><?= $block->escapeHtml($block->getTotal()->getTitle()) ?></strong>
  47. </th>
  48. <td class="amount" data-th="<?= $block->escapeHtmlAttr($block->getTotal()->getTitle()) ?>">
  49. <strong><?= /* @noEscape */ $checkoutHelper->formatPrice($block->getTotal()->getValue()) ?></strong>
  50. </td>
  51. </tr>
  52. <?php if ($style): ?>
  53. <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.grand.totals th.mark') ?>
  54. <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.grand.totals td.amount') ?>
  55. <?php endif; ?>
  56. <?php endif; ?>