Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Totals don't add up when prices are displayed without taxes #1963

Closed
Aljullu opened this issue Mar 13, 2020 · 1 comment · Fixed by #1979
Closed

Totals don't add up when prices are displayed without taxes #1963

Aljullu opened this issue Mar 13, 2020 · 1 comment · Fixed by #1979
Assignees
Labels
focus: blocks Specific work involving or impacting how blocks behave. type: bug The issue/PR concerns a confirmed bug.
Milestone

Comments

@Aljullu
Copy link
Contributor

Aljullu commented Mar 13, 2020

To Reproduce

  1. Go to WooCommerce > Settings > Taxes and set Display prices during cart and checkout to Excluding Tax.
  2. Add some products to your cart and visit a page with the Cart block.
  3. Depending on the items you have in the cart, totals might not add up correctly:
    imatge
    (line items are 170,93€, while subtotal is 170,91€)

This is how it looks in the Cart page, which doesn't have this issue:
imatge
(notice the subtotal of Cap is different than before)

@Aljullu Aljullu added the focus: blocks Specific work involving or impacting how blocks behave. label Mar 13, 2020
@Aljullu Aljullu added this to the Future Release milestone Mar 13, 2020
@nerrad nerrad added the type: bug The issue/PR concerns a confirmed bug. label Mar 13, 2020
@senadir
Copy link
Member

senadir commented Mar 16, 2020

seems like a rounding issue that could be related to how JS does float calculations? not fully sure how to approach this honestly

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
focus: blocks Specific work involving or impacting how blocks behave. type: bug The issue/PR concerns a confirmed bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants