From 2e1475c3d172f7047fb4c014d09cffb7617d3c21 Mon Sep 17 00:00:00 2001 From: Vlad Date: Mon, 10 Feb 2025 12:35:42 +0300 Subject: [PATCH 1/2] Update subtotal.phtml --- .../Magento/Tax/view/frontend/templates/checkout/subtotal.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Tax/view/frontend/templates/checkout/subtotal.phtml b/app/code/Magento/Tax/view/frontend/templates/checkout/subtotal.phtml index dc9034fc9f694..f8b5c6e88fcdf 100644 --- a/app/code/Magento/Tax/view/frontend/templates/checkout/subtotal.phtml +++ b/app/code/Magento/Tax/view/frontend/templates/checkout/subtotal.phtml @@ -21,7 +21,7 @@ $checkoutHelper = $block->getData('checkoutHelper'); escapeHtml(__('Subtotal (Excl. Tax)')) ?> - + formatPrice($block->getTotal()->getValueExclTax()) ?> From d927d0bcdd6b2a3e8960acd7d000fcb09100401a Mon Sep 17 00:00:00 2001 From: engcom-Dash Date: Mon, 14 Apr 2025 10:49:49 +0530 Subject: [PATCH 2/2] Fixed Static Test Failures --- .../templates/checkout/subtotal.phtml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/app/code/Magento/Tax/view/frontend/templates/checkout/subtotal.phtml b/app/code/Magento/Tax/view/frontend/templates/checkout/subtotal.phtml index f8b5c6e88fcdf..41db5db0285df 100644 --- a/app/code/Magento/Tax/view/frontend/templates/checkout/subtotal.phtml +++ b/app/code/Magento/Tax/view/frontend/templates/checkout/subtotal.phtml @@ -1,17 +1,18 @@ escapeHtmlAttr($block->getStyle()); +$style = $escaper->escapeHtmlAttr($block->getStyle()); $colspan = (int) $block->getColspan(); /** @var \Magento\Checkout\Helper\Data $checkoutHelper */ $checkoutHelper = $block->getData('checkoutHelper'); @@ -19,9 +20,9 @@ $checkoutHelper = $block->getData('checkoutHelper'); displayBoth()): ?> - escapeHtml(__('Subtotal (Excl. Tax)')) ?> + escapeHtml(__('Subtotal (Excl. Tax)')) ?> - + formatPrice($block->getTotal()->getValueExclTax()) ?> @@ -31,9 +32,9 @@ $checkoutHelper = $block->getData('checkoutHelper'); - escapeHtml(__('Subtotal (Incl. Tax)')) ?> + escapeHtml(__('Subtotal (Incl. Tax)')) ?> - + formatPrice($block->getTotal()->getValueInclTax()) ?> @@ -44,9 +45,9 @@ $checkoutHelper = $block->getData('checkoutHelper'); - escapeHtml($block->getTotal()->getTitle()) ?> + escapeHtml($block->getTotal()->getTitle()) ?> - + formatPrice($block->getTotal()->getValue()) ?>