-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Area: Cart & CheckoutArea: TaxComponent: TaxIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.May be fixed according to the position in the backlog.Progress: doneReported on 2.4.2Indicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch
Description
Preconditions and environment
- Magento version 2.4.2
Steps to reproduce
- Enable multiple delivery methods by navigating to Stores -> Configuration -> Sales -> Delivery Methods.
- Set 'Display Zero Tax Subtotal' to 'No' by navigating to Stores -> Configuration -> Sales -> Tax -> Shopping Cart Display Settings.
- Visit storefront without signing in, add a product to cart and check shopping cart. Zero tax field is visible untill we chose a shipping method.
Expected result
Tax field with value 0.00 should not be visible in cart totals before selecting shipping methods.
Actual result
Tax field with value 0.00 is visible even before selecting shipping method.
Additional information
This issue happens because of strict equals operator in -> vendor/magento/module-tax/view/frontend/web/js/view/checkout/cart/totals/tax.js on line 24.
If we change it '==' the value '0.00' will also satisfy this condition and hide the tax field.
Same operator i.e., '==' is used in vendor/magento/module-tax/view/frontend/web/js/view/checkout/summary/tax.js for tax field zero value display check.
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
Area: Cart & CheckoutArea: TaxComponent: TaxIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.May be fixed according to the position in the backlog.Progress: doneReported on 2.4.2Indicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch