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]: Unable to use different shipping and billing in example templates #2841

Closed
rynpsc opened this issue Jun 9, 2022 · 5 comments
Closed
Labels
🏠 addresses bug commerce4 Issues related to Commerce v4

Comments

@rynpsc
Copy link
Contributor

rynpsc commented Jun 9, 2022

What happened?

Description

When using the example templates and entering a new shipping and new billing address that are different, the billing address overrides the shipping address and they get set to the same model.

Craft CMS version

4.04

Craft Commerce version

4.0.2

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

@rynpsc rynpsc added commerce4 Issues related to Commerce v4 bug labels Jun 9, 2022
@nfourtythree
Copy link
Contributor

Hi @rynpsc

I have just tried this with the latest code and example templates and I was unable to replicate the issue.

Could you please send across step by step details on how to reproduce along with if you were doing this as a guest or a logged-in customer.

Thanks.

@rynpsc
Copy link
Contributor Author

rynpsc commented Jun 10, 2022

Sorry I thought it was easier to replicate that in actually is. I'm able to replicate this when checking out as a guest.

  1. Start out by adding a shipping address and making the billing address the same as shipping then proceeding to the next page in the checkout via "Confirm addresses".
  2. Then go back to the address page and change to using a separate billing address, making edits to the billing address and proceeding to the next page in the checkout via "Confirm addresses".
  3. Go back to the address page again and the edits you have made to the billing address have been copied to the shipping address.

Any further edits to the shipping address will always be overridden by the details in the billing address.

This video demonstrates the issue described in steps 1 to 3.

address-issue-2841.mov

I'm also seeing this behaviour in our own templates which were working pre Commerce 4, amongst some other issues with the address changes but with the example templates also having issues is hard to see exactly what's going on.

I've done a quick check and the fields in the example templates are using the correct namespaces shippingAddress[], billingAddress. I suspect is has something to do with the way address are being cloned but that's a wild guess.

@pdaleramirez
Copy link
Contributor

I believe this issue will get fixed on Commerce version 4.1 release.

@rynpsc
Copy link
Contributor Author

rynpsc commented Jul 13, 2022

Any idea when we might see 4.1? We've a couple of outstanding issues with addresses including this one along with #2850 and #2844 that do significantly hinder the checkout process vs 3.x behaviour so we're hesitant to roll out Commerce 4 to our clients.

@lukeholder
Copy link
Member

@rynpsc 4.1 was released a few hours ago.

See changelog here: https://github.com/craftcms/commerce/blob/develop/CHANGELOG.md#410---2022-07-19

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

No branches or pull requests

4 participants