-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Custom Attribute such as House Number on checkout is not working #39433
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
Comments
Hi @hariwebdeveloper1989. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi This has been tested in vanilla version of Magento and issue is reproducible. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
Can we make sure it work with 2.4.6-p1 as well as I need to provide solution to one my client on 2.4.6-p1 |
Hi I tested with 2.4-develop branch as well and it is not working at my end. Thankyou |
Thanks for your update . Could you please provide information regarding attributes.Have you created from backend or you have used Magezon custom attributes because since customer address attributes will be for Adobe Magento EE edition. Please confirm that you have tested in Magento CE or EE edition. Thanks. |
Hi I have tested in Magento CE via using Magezon Custom Attributes, https://mage2gen.com/ and recommended requires experius/module-extracheckoutaddressfields extension. I also followed the documentation as well Will you able to provide the step by step you guys have followed. I have below in my custom extension as well vendor/extension/registration.php Let me know if there is any DM or email where I can share the complete custom code. Some of my findings further on debugging
However the same attribute works while editing shipping address in the order or edit address in admin panel under a customer. So the issue is in frontend while checkout new address. Let me any know if there are any additional questions and information required. Thanks & Regards, |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hello @hariwebdeveloper1989, We have tried to reproduce the issue in the latest development branch i.e. 2.4-develop and the issue has been reproducible for us. Please refer to the below screenshot for reference: For reference, we are attaching the custom module as well which helps us in issue reproduction: Thanks for the contribution |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-13506 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Hotel. Thank you for verifying the issue. |
Thanks for confirming the issue and will wait for its solution eagerly. |
Is there any update for this issue. Do we found a solution for resolving it. |
Hi Support. Is there any update on the said issue. Any timeline for the solution. |
@magento I am working on this |
@hariwebdeveloper1989 @engcom-Bravo @engcom-Hotel - I investigated the issue where the custom address attribute house_number was not saving in the address book after placing an order. The root cause is that Magento does not automatically transfer custom address attributes from customer_address_entity to sales_order_address. While setting 'user_defined' => true ensures it is stored in customer_address_entity, it does not persist in orders. The provided ZIP lacks the necessary plugin to copy the attribute to quote_address and sales_order_address during checkout. Implementing this logic will ensure the attribute is correctly saved in the order. Online module creators are also not providing full code for saving attribute value in database. |
Hi Ajay2108 https://magecomp.com/blog/magento-2-add-custom-field-at-customer-address-form-and-save-its-value/ This is for adding a custom field in the customer profile entity. I have discover the error is with the customer address entity. If you read entire history of ticket. You will get the issue is in core Magento where a custom field is not getting save and functioning as other default address field. Hence the solution provided by you is not functional. Also stackexchange.com solution is not feasible as well. As the same code I tried and its not functional as well with vanilla Magento I work it as mention in initial requirement of ticket. Regards, @m2-assistant the issue reported still waiting proper resolution. |
Preconditions and environment
Follow the steps below
Steps to reproduce
Expected result
House Number should be save with address and at order billing address and shipping address.
Actual result
House Number is not save with address or with order
Additional information
NA
Release note
Custom attribute or extension attribute for customer addresses not save with address and in with order.
Triage and priority
The text was updated successfully, but these errors were encountered: