Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: pass cart down to calculateOrderTaxes fn #6000

Merged
merged 1 commit into from
Jan 7, 2020

Conversation

aldeed
Copy link
Contributor

@aldeed aldeed commented Jan 6, 2020

Resolves #5583
Impact: minor
Type: refactor

Changes

When calling calculateOrderTaxes function for a fulfillment group that's in a cart, the parent cart object is passed in now. When called for an order, it's null. This is helpful for some tax plugins that may be storing additional information on the cart itself.

Breaking changes

None

Testing

Using logging or Node debugger, verify that cart is set on the calculateOrderTaxes function input object. It is called whenever you add or remove items from your cart or otherwise modify it.

Signed-off-by: Eric Dobbertin <eric@dairystatedesigns.com>
@aldeed aldeed requested a review from willopez January 6, 2020 22:50
Copy link
Member

@willopez willopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified

@willopez willopez merged commit 635e229 into release-3.0.0 Jan 7, 2020
@willopez willopez deleted the refactor-aldeed-5583-pass-cart-for-taxes branch January 7, 2020 17:57
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.

2 participants