unit.phtml 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. // @codingStandardsIgnoreFile
  7. /** @var $block \Magento\Weee\Block\Item\Price\Renderer */
  8. $item = $block->getItem();
  9. ?>
  10. <?php if ($block->displayPriceInclTax() || $block->displayBothPrices()): ?>
  11. <span class="price-including-tax" data-label="<?= $block->escapeHtml(__('Incl. Tax')) ?>">
  12. <?php if ($block->displayPriceWithWeeeDetails()): ?>
  13. <span class="cart-tax-total"
  14. data-mage-init='{"taxToggle": {"itemTaxId" : "#unit-item-tax-details<?= /* @escapeNotVerified */ $item->getId() ?>"}}'>
  15. <?php else: ?>
  16. <span class="cart-price">
  17. <?php endif; ?>
  18. <?= /* @escapeNotVerified */ $block->formatPrice($block->getUnitDisplayPriceInclTax()) ?>
  19. </span>
  20. <?php if ($this->helper('Magento\Weee\Helper\Data')->getApplied($item)): ?>
  21. <span class="cart-tax-info" id="unit-item-tax-details<?= /* @escapeNotVerified */ $item->getId() ?>" style="display: none;">
  22. <?php foreach ($this->helper('Magento\Weee\Helper\Data')->getApplied($item) as $tax): ?>
  23. <span class="weee" data-label="<?= /* @escapeNotVerified */ $tax['title'] ?>">
  24. <?= /* @escapeNotVerified */ $block->formatPrice($tax['amount_incl_tax'], true, true) ?>
  25. </span>
  26. <?php endforeach; ?>
  27. </span>
  28. <?php if ($block->displayFinalPrice()): ?>
  29. <span class="cart-tax-total"
  30. data-mage-init='{"taxToggle": {"itemTaxId" : "#unit-item-tax-details<?= /* @escapeNotVerified */ $item->getId() ?>"}}'>
  31. <span class="weee" data-label="<?= $block->escapeHtml(__('Total Incl. Tax')) ?>">
  32. <?= /* @escapeNotVerified */ $block->formatPrice($block->getFinalUnitDisplayPriceInclTax()) ?>
  33. </span>
  34. </span>
  35. <?php endif; ?>
  36. <?php endif; ?>
  37. </span>
  38. <?php endif; ?>
  39. <?php if ($block->displayPriceExclTax() || $block->displayBothPrices()): ?>
  40. <span class="price-excluding-tax" data-label="<?= $block->escapeHtml(__('Excl. Tax')) ?>">
  41. <?php if ($block->displayPriceWithWeeeDetails()): ?>
  42. <span class="cart-tax-total"
  43. data-mage-init='{"taxToggle": {"itemTaxId" : "#eunit-item-tax-details<?= /* @escapeNotVerified */ $item->getId() ?>"}}'>
  44. <?php else: ?>
  45. <span class="cart-price">
  46. <?php endif; ?>
  47. <?= /* @escapeNotVerified */ $block->formatPrice($block->getUnitDisplayPriceExclTax()) ?>
  48. </span>
  49. <?php if ($this->helper('Magento\Weee\Helper\Data')->getApplied($item)): ?>
  50. <span class="cart-tax-info" id="eunit-item-tax-details<?= /* @escapeNotVerified */ $item->getId() ?>"
  51. style="display: none;">
  52. <?php foreach ($this->helper('Magento\Weee\Helper\Data')->getApplied($item) as $tax): ?>
  53. <span class="weee" data-label="<?= /* @escapeNotVerified */ $tax['title'] ?>">
  54. <?= /* @escapeNotVerified */ $block->formatPrice($tax['amount'], true, true) ?>
  55. </span>
  56. <?php endforeach; ?>
  57. </span>
  58. <?php if ($block->displayFinalPrice()): ?>
  59. <span class="cart-tax-total"
  60. data-mage-init='{"taxToggle": {"itemTaxId" : "#eunit-item-tax-details<?= /* @escapeNotVerified */ $item->getId() ?>"}}'>
  61. <span class="weee" data-label="<?= $block->escapeHtml(__('Total')) ?>">
  62. <?= /* @escapeNotVerified */ $block->formatPrice($block->getFinalUnitDisplayPriceExclTax()) ?>
  63. </span>
  64. </span>
  65. <?php endif; ?>
  66. <?php endif; ?>
  67. </span>
  68. <?php endif; ?>