Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

58 строки
2.4 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\Subtotal
  8. * @see \Magento\Tax\Block\Checkout\Subtotal
  9. * @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer
  10. */
  11. ?>
  12. <?php
  13. $style = $block->escapeHtmlAttr($block->getStyle());
  14. $colspan = (int) $block->getColspan();
  15. /** @var \Magento\Checkout\Helper\Data $checkoutHelper */
  16. $checkoutHelper = $block->getData('checkoutHelper');
  17. ?>
  18. <?php if ($block->displayBoth()): ?>
  19. <tr class="totals sub excl">
  20. <th class="mark" colspan="<?= /* @noEscape */ $colspan ?>" scope="row">
  21. <?= $block->escapeHtml(__('Subtotal (Excl. Tax)')) ?>
  22. </th>
  23. <tdclass="amount" data-th="<?= $block->escapeHtmlAttr(__('Subtotal (Excl. Tax)')) ?>">
  24. <?= /* @noEscape */ $checkoutHelper->formatPrice($block->getTotal()->getValueExclTax()) ?>
  25. </td>
  26. </tr>
  27. <?php if ($style): ?>
  28. <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.totals.sub.excl th.mark') ?>
  29. <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.totals.sub.excl td.amount') ?>
  30. <?php endif; ?>
  31. <tr class="totals sub incl">
  32. <th class="mark" colspan="<?= /* @noEscape */ $colspan ?>" scope="row">
  33. <?= $block->escapeHtml(__('Subtotal (Incl. Tax)')) ?>
  34. </th>
  35. <td class="amount" data-th="<?= $block->escapeHtmlAttr(__('Subtotal (Incl. Tax)')) ?>">
  36. <?= /* @noEscape */ $checkoutHelper->formatPrice($block->getTotal()->getValueInclTax()) ?>
  37. </td>
  38. </tr>
  39. <?php if ($style): ?>
  40. <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.totals.sub.incl th.mark') ?>
  41. <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.totals.sub.incl td.amount') ?>
  42. <?php endif; ?>
  43. <?php else: ?>
  44. <tr class="totals sub">
  45. <th class="mark" colspan="<?= /* @noEscape */ $colspan ?>" scope="row">
  46. <?= $block->escapeHtml($block->getTotal()->getTitle()) ?>
  47. </th>
  48. <td class="amount" data-th="<?= $block->escapeHtmlAttr($block->getTotal()->getTitle()) ?>">
  49. <?= /* @noEscape */ $checkoutHelper->formatPrice($block->getTotal()->getValue()) ?>
  50. </td>
  51. </tr>
  52. <?php if ($style): ?>
  53. <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.totals.sub th.mark') ?>
  54. <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($style, 'tr.totals.sub td.amount') ?>
  55. <?php endif; ?>
  56. <?php endif; ?>