shipping.phtml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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\Shipping
  9. * @see \Magento\Tax\Block\Checkout\Shipping
  10. */
  11. ?>
  12. <?php if ($block->displayShipping()):?>
  13. <?php if ($block->displayBoth()):?>
  14. <tr class="totals shipping excl">
  15. <th style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="mark" colspan="<?= /* @escapeNotVerified */ $block->getColspan() ?>" scope="row">
  16. <?= /* @escapeNotVerified */ $block->getExcludeTaxLabel() ?>
  17. </th>
  18. <td style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="amount" data-th="<?= $block->escapeHtml($block->getExcludeTaxLabel()) ?>">
  19. <?= /* @escapeNotVerified */ $this->helper('Magento\Checkout\Helper\Data')->formatPrice($block->getShippingExcludeTax()) ?>
  20. </td>
  21. </tr>
  22. <tr class="totals shipping incl">
  23. <th style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="mark" colspan="<?= /* @escapeNotVerified */ $block->getColspan() ?>" scope="row">
  24. <?= /* @escapeNotVerified */ $block->getIncludeTaxLabel() ?>
  25. </th>
  26. <td style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="amount" data-th="<?= $block->escapeHtml($block->getIncludeTaxLabel()) ?>">
  27. <?= /* @escapeNotVerified */ $this->helper('Magento\Checkout\Helper\Data')->formatPrice($block->getShippingIncludeTax()) ?>
  28. </td>
  29. </tr>
  30. <?php elseif ($block->displayIncludeTax()) : ?>
  31. <tr class="totals shipping incl">
  32. <th style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="mark" colspan="<?= /* @escapeNotVerified */ $block->getColspan() ?>" scope="row">
  33. <?= /* @escapeNotVerified */ $block->getTotal()->getTitle() ?>
  34. </th>
  35. <td style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="amount" data-th="<?= $block->escapeHtml($block->getTotal()->getTitle()) ?>">
  36. <?= /* @escapeNotVerified */ $this->helper('Magento\Checkout\Helper\Data')->formatPrice($block->getShippingIncludeTax()) ?>
  37. </td>
  38. </tr>
  39. <?php else:?>
  40. <tr class="totals shipping excl">
  41. <th style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="mark" colspan="<?= /* @escapeNotVerified */ $block->getColspan() ?>" scope="row">
  42. <?= $block->escapeHtml($block->getTotal()->getTitle()) ?>
  43. </th>
  44. <td style="<?= /* @escapeNotVerified */ $block->getStyle() ?>" class="amount" data-th="<?= $block->escapeHtml($block->getTotal()->getTitle()) ?>">
  45. <?= /* @escapeNotVerified */ $this->helper('Magento\Checkout\Helper\Data')->formatPrice($block->getShippingExcludeTax()) ?>
  46. </td>
  47. </tr>
  48. <?php endif;?>
  49. <?php endif; ?>