Describe the bug
A customer sets a shipping address, then proceeds to choose a shipping method. Both are set on the cart.
They then backtrack through the checkout and change their shipping address. The new address results in the original selected shipping method being invalid but it is not removed from the cart.
The standard Commerce behaviour would be to remove the selected invalid shipping method from the cart and instead apply the first valid one available for the new shipping address.
Steps to reproduce
- Set up shipping options specific to different regions; e.g. USA and Canada
- Checkout and set the shipping address to, say, USA
- Select the USA specific shipping method offered
- Go back and update the shipping address to a Canadian address
- Examine the shipping method on the cart, it will still be the USA specific method.
Craft CMS version
4.10.4
Plugin version
3.1.8
Multi-site?
No
Additional context
No response
Describe the bug
A customer sets a shipping address, then proceeds to choose a shipping method. Both are set on the cart.
They then backtrack through the checkout and change their shipping address. The new address results in the original selected shipping method being invalid but it is not removed from the cart.
The standard Commerce behaviour would be to remove the selected invalid shipping method from the cart and instead apply the first valid one available for the new shipping address.
Steps to reproduce
Craft CMS version
4.10.4
Plugin version
3.1.8
Multi-site?
No
Additional context
No response