subtotal.phtml 2.0 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\Subtotal
  9. * @see \Magento\Tax\Block\Checkout\Subtotal
  10. */
  11. ?>
  12. <?php if ($block->displayBoth()):?>
  13. <tr class="totals sub excl">
  14. <th style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="mark" colspan="<?= /* @escapeNotVerified */ $block->getColspan() ?>" scope="row">
  15. <?= /* @escapeNotVerified */ __('Subtotal (Excl. Tax)') ?>
  16. </th>
  17. <td style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="amount" data-th="<?= $block->escapeHtml(__('Subtotal (Excl. Tax)')) ?>">
  18. <?= /* @escapeNotVerified */ $this->helper('Magento\Checkout\Helper\Data')->formatPrice($block->getTotal()->getValueExclTax()) ?>
  19. </td>
  20. </tr>
  21. <tr class="totals sub incl">
  22. <th style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="mark" colspan="<?= /* @escapeNotVerified */ $block->getColspan() ?>" scope="row">
  23. <?= /* @escapeNotVerified */ __('Subtotal (Incl. Tax)') ?>
  24. </th>
  25. <td style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="amount" data-th="<?= $block->escapeHtml(__('Subtotal (Incl. Tax)')) ?>">
  26. <?= /* @escapeNotVerified */ $this->helper('Magento\Checkout\Helper\Data')->formatPrice($block->getTotal()->getValueInclTax()) ?>
  27. </td>
  28. </tr>
  29. <?php else : ?>
  30. <tr class="totals sub">
  31. <th style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="mark" colspan="<?= /* @escapeNotVerified */ $block->getColspan() ?>" scope="row">
  32. <?= /* @escapeNotVerified */ $block->getTotal()->getTitle() ?>
  33. </th>
  34. <td style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="amount" data-th="<?= $block->escapeHtml($block->getTotal()->getTitle()) ?>">
  35. <?= /* @escapeNotVerified */ $this->helper('Magento\Checkout\Helper\Data')->formatPrice($block->getTotal()->getValue()) ?>
  36. </td>
  37. </tr>
  38. <?php endif;?>