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]: Address with First Name or Last Name with more than one word get stripped #3360

Closed
aodihis opened this issue Jan 10, 2024 · 2 comments
Labels
bug commerce4 Issues related to Commerce v4

Comments

@aodihis
Copy link

aodihis commented Jan 10, 2024

What happened?

Description

In Commerce we can specify the address with the first name and last name instead sent it as the full name, when we save it the address the data is still correct but if the cart get updated after same the address, the first/ last name with more than 1 one get stripped.

Recently also Craft has an update to add showFirstAndLastNameFields, so by right it should be possible to save first name or last name with more than one word.

Steps to reproduce

  1. Create an order on CMS/FE with the address first name with two words. For example: First Name: John Doe, Last Name: Eric.
  2. Update the order, on cms we can just click update button or in FE can be trigger by adding coupon.

Expected behavior

On step 2 the Name on the address should no get stripped.

Actual behavior

The first name got stripped and become John.

Craft CMS version

4.6.0

Craft Commerce version

4.3.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

@aodihis aodihis added commerce4 Issues related to Commerce v4 bug labels Jan 10, 2024
@lukeholder
Copy link
Member

Duplicate of #3356

@lukeholder lukeholder marked this as a duplicate of #3356 Mar 6, 2024
@lukeholder
Copy link
Member

Please follow the other issue for the fix. Thanks.

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