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

[4.x]: Removing shipping address from an order (via the REST API) does not work #3230

Closed
freder opened this issue Jul 24, 2023 · 2 comments
Closed
Labels
bug commerce4 Issues related to Commerce v4

Comments

@freder
Copy link

freder commented Jul 24, 2023

What happened?

setting shippingAddressId and shippingAddress to null (in the commerce/cart/update-cart payload) has no effect.
if a shipping address was set before, it will not have been removed.


also somewhat related: I noticed that when removing the shipping address via the admin, the address gets set to null but somehow shippingAddressId keeps its value.

Screenshot 2023-07-13 at 14 58 01

Craft CMS version

4.4.16.1

Craft Commerce version

4.2.11

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@freder freder added commerce4 Issues related to Commerce v4 bug labels Jul 24, 2023
@lukeholder
Copy link
Member

in 4.2.9 we added the following params accepted by commerce/cart/update-cart:

clearShippingAddress
clearBillingAddress
and clearAddresses

Hope that helps.

@freder
Copy link
Author

freder commented Jul 25, 2023

from what I can tell this isn't mentioned anywhere in the docs.
I would have expected it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug commerce4 Issues related to Commerce v4
Projects
None yet
Development

No branches or pull requests

2 participants