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

Skip to content

Conversation

@aldeed
Copy link
Contributor

@aldeed aldeed commented Dec 18, 2019

Resolves #5472
Impact: minor
Type: feature

Changes

The getFulfillmentMethodsWithQuotes function in the shipping-rates plugin now looks up shipping rates and applies shipping restrictions as much as it can when there is no shippingAddress on the order/cart yet. Previously it would throw an error.

Breaking changes

The behavior has changed, but not in a way that is likely to confuse anyone.

Testing

  • Call the updateFulfillmentOptionsForGroup mutation before setting a shipping address on the cart and verify that shipping rates are added to the cart.
  • Define a restriction that is not based on destination and verify that it is correctly applied.

@aldeed aldeed requested a review from kieckhafer December 18, 2019 02:16
Copy link
Member

@kieckhafer kieckhafer left a comment

Choose a reason for hiding this comment

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

Looks good.

Was able to get fulfillment quote attached to the cart via the API prior to adding an address to an order, and was able to get that method restricted based on an attribute restriction.

@kieckhafer kieckhafer merged commit 5a64d0a into release-3.0.0 Dec 19, 2019
@kieckhafer kieckhafer deleted the feat-aldeed-5472-get-fulfillment-quotes-without-address branch December 19, 2019 23:55
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.

3 participants