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.
 
 
 
 
 
 

52 lines
2.5 KiB

  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. ?>
  7. <?php
  8. /** @var \Magento\Weee\Pricing\Render\Adjustment $block */
  9. $weeeSeparator = $openBrace = $closeBrace = '';
  10. $openBrace = '(';
  11. $closeBrace = ')';
  12. $taxDisplay = $block->getTaxDisplayConfig();
  13. $priceDisplay = $block->isPriceIncludesTax();
  14. ?>
  15. <?php if ($block->showInclDescr() || $block->showExclDescrIncl()) : // incl. + weee || excl. + weee + final ?>
  16. <?php foreach ($block->getWeeeTaxAttributes() as $weeeTaxAttribute) : ?>
  17. <?php
  18. $attributeName = $block->escapeHtmlAttr($block->renderWeeeTaxAttributeName($weeeTaxAttribute));
  19. ?>
  20. <?php if ($taxDisplay == Magento\Tax\Model\Config::DISPLAY_TYPE_INCLUDING_TAX) : ?>
  21. <span class="weee"
  22. data-price-type="weee"
  23. data-label="<?= /* @noEscape */ $attributeName ?>">
  24. <?= /* @noEscape */ $block->renderWeeeTaxAttributeWithTax($weeeTaxAttribute) ?></span>
  25. <?php elseif ($taxDisplay == Magento\Tax\Model\Config::DISPLAY_TYPE_EXCLUDING_TAX) : ?>
  26. <span class="weee"
  27. data-price-type="weee"
  28. data-label="<?= /* @noEscape */ $attributeName ?>">
  29. <?= /* @noEscape */ $block->renderWeeeTaxAttributeWithoutTax($weeeTaxAttribute) ?></span>
  30. <?php elseif ($taxDisplay == Magento\Tax\Model\Config::DISPLAY_TYPE_BOTH) : ?>
  31. <span class="weee"
  32. data-price-type="weee"
  33. data-label="<?= /* @noEscape */ $attributeName . ' ' . $block->escapeHtmlAttr(__('Incl. Tax')) ?>">
  34. <?= /* @noEscape */ $block->renderWeeeTaxAttributeWithTax($weeeTaxAttribute) ?></span>
  35. <span class="weee"
  36. data-price-type="weee"
  37. data-label="<?= /* @noEscape */ $attributeName . ' ' . $block->escapeHtmlAttr(__('Excl. Tax')) ?>">
  38. <?= /* @noEscape */ $block->renderWeeeTaxAttributeWithoutTax($weeeTaxAttribute) ?></span>
  39. <?php endif; ?>
  40. <?php endforeach; ?>
  41. <?php endif; ?>
  42. <?php if ($block->showExclDescrIncl()) : // excl. + weee + final ?>
  43. <span class="price-final price-final_price"
  44. data-price-type="weeePrice"
  45. data-price-amount="<?= /* @noEscape */ $block->getRawFinalAmount() ?>"
  46. data-label="<?= $block->escapeHtmlAttr(__('Final Price')) ?>"><?= /* @noEscape */ $block->getFinalAmount() ?></span>
  47. <?php endif; ?>