Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jamesporl
Copy link
Contributor

Resolves N/A
Impact: critical
Type: bugfix

Issue

The cart returned when items are removed from cart does not have the correct taxes.

Solution

Wait for the afterCartUpdate updates to finish before returning the cart to the client.

My code changes are based on how updateCartItemsQuantity mutation handled returning the updated cart.

Breaking changes

None

Testing

Go to checkout with multiple items in cart. Enter a shipping address that will result to taxes and enter shipping method. Go back to cart page. Remove an item in the cart. See that the tax is updated in the summary.

@chrispotter
Copy link

@ajporlante please sign your commit and i'll work on updating the unit-tests

James Porlante added 2 commits August 22, 2019 22:48
Signed-off-by: James Porlante <[email protected]>
@jamesporl jamesporl force-pushed the ajportante-fix-remove-cart-items-result branch from cfbe85d to 48f65f8 Compare August 22, 2019 14:48
@aldeed
Copy link
Contributor

aldeed commented Aug 23, 2019

I refactored this function in #5477 and I believe that change will also fix this issue in a different way.

Signed-off-by: James Porlante <[email protected]>
@jamesporl jamesporl force-pushed the ajportante-fix-remove-cart-items-result branch from 2552c6d to 93b88ed Compare August 23, 2019 07:42
@focusaurus
Copy link
Contributor

Should we close in favor of #5477?

@jamesporl
Copy link
Contributor Author

Closing this in favor of #5477

@jamesporl jamesporl closed this Aug 28, 2019
@aldeed aldeed deleted the ajportante-fix-remove-cart-items-result branch September 4, 2019 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants