Closed codewithkyle closed 4 years ago
I am having the same exact error as well. Not sure what has changed to cause this.
Thanks!
Looking into this shortly. What providers are you using out of interest? Seems like something has changed in 3.1.x
I'm using a custom provider through postie
i created an issue in craft/commerce as well referenced above. It seems that new code was added in the json response.
Also, for me, this seems to occur only when logged in or a customer/user is set on the cart.
I am only using UPS
Hmmm, I can't seem to replicate this with the default templates, or any of the enabled providers, so will continue testing.
EDIT: Looks like I need to call cart.getAvailableShippingMethodOptions()
which throws this.
I'll try and reach out to the Commerce team about this, and what the preferred solution is. I can't think of anything immediately on Postie's end that wouldn't be a larger refactor. See https://github.com/craftcms/commerce/issues/1378#issuecomment-613152838
thanks for looking into this. that was a sneaky error. after this is resolved, if we can discuss good ways to test for this to prevent in the future.
Description
After updating to Commerce 3.1.1 users can no longer complete the checkout process. The following error is received when adding a product to the cart or navigating to the shipping page during checkout.
"Setting unknown property: craft\commerce\models\ShippingMethodOption::provider"
Steps to reproduce
Additional info
Stack Trace