Skip to content

Unexpexted display of the tax row in the cart summary block #7990

@edelepine

Description

@edelepine

Preconditions

  1. Magento CE 2.1.2

Steps to reproduce

  1. Add product in order to access checkout/cart page.
  2. View and edit cart.
  3. Ensure that tax segment is equal to zero.
  4. Ensure that window.checkoutConfig.isZeroTaxDisplayed is equal to false.

Expected result

  1. In summary block, tax row should'nt be displayed

Actual result

  1. Despite of expected configuration, tax row is displayed in the summary block

image

The problem seems to come from the js function ifShowValue in totals/tax.js where condition use a === comparison operator.
So when comparing a float value and an integer value, the function will always return true.

Metadata

Metadata

Assignees

Labels

Component: CheckoutComponent: TaxFixed in 2.2.xThe issue has been fixed in 2.2 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releasebug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions