Skip to content

Conversation

@mage2pratik
Copy link
Contributor

Original Pull Request

#13185

Description

A negative basket total is produced when:

  • tax was applied;
  • shipping was calculated and saved; and
  • basket is emptied

This PR fixes the issue by completing an earlier return on tax total collector that failed to unset taxed shipping total information.

negative-price

Fixed Issues (if relevant)

No directly related issue found

Manual testing scenarios

  1. Set up tax to 20%

  2. Set up tax settings like below

    tax-settings

  3. Sign in on front-end

  4. Add a default shipping address that will result in 20% tax rate

  5. Add a product to basket

  6. Go to checkout page

  7. Select default shipping address and select shipping method

  8. Step to billing (At this point, shipping tax should be calculated and show up on the breakdown)

  9. Go to basket page

  10. Empty the basket by removing the only product from it

Expected result

Basket total should become 0

Actual result

Basket total become negative (e.g., -1)

/customer/section/load/?sections=cart

DEMO

http://recordit.co/vERAS5KL1x

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-engcom-team
Copy link
Contributor

Hi @mage2pratik. Thank you for your contribution.
We will aim to release these changes as part of 2.1.15.
Please check the release notes for final confirmation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants