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]: shippingAsBilling duplicates the address element ID #3238

Closed
lukeholder opened this issue Aug 1, 2023 · 2 comments
Closed

[4.x]: shippingAsBilling duplicates the address element ID #3238

lukeholder opened this issue Aug 1, 2023 · 2 comments
Labels
bug commerce4 Issues related to Commerce v4

Comments

@lukeholder
Copy link
Member

What happened?

Description

When submitting a shipping address and making billingAddressSameAsShipping or shippingAddressSameAsBilling the other address gets set, and incorrectly gets new ID every time, increasing the number of orphaned addresses.

Craft CMS version

4.x

Craft Commerce version

4.x

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

@lukeholder lukeholder added bug commerce4 Issues related to Commerce v4 labels Aug 1, 2023
@ineghi
Copy link

ineghi commented Jan 11, 2024

I do have exactly the same issue after migrated from 3.x, even with shippingAddressSameAsBilling not being set. Did you find anything ?

edit: it does exactly the same when creating a new cart. The system seems to takes the primaryShippingAddresss set on User, but does create a new address object on Cart level

@lukeholder
Copy link
Member Author

This was fixed in 4.3

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