-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Coupling beetwen Magento_Checkout::js/view/shipping.js:validateShippingInformation() and layout definition or view. #22416
Comments
Hi @funkyproject. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @funkyproject do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
Hey @funkyproject, thanks for finding this out! Indeed, having paths to different components hardcoded in the source is not in line with Magento best practices. I took some time and applies some changes in https://github.com/magento/magento2/pull/25541/files that I found the most sensible. With it, you should be able to pass adjusted paths to country components through configuration which you seem to be customizing anyway. Waiting for your feedback regarding this proposed solution. |
✅ Confirmed by @krzksz |
Hi @krzksz. Thank you for working on this issue.
|
Hi @funkyproject. Thank you for your report. The fix will be available with the upcoming 2.4.0 release. |
Summary
On checkout shipping step, I reorganized the shipping address form and moved the postCode and countryId fields into a group.
I can't validate the shipping address without overriding the Magento_Checkout:js/view/shipping.js file and particulary the validateShippingInformation().
In my case, I need to change this to :
Preconditions
Steps to reproduce
Examples (*)
This is the layoutProcessorPlugin for reorganize the shipping and billing form:
Proposed solution
No idea, but if we could set an alias for the uiRegistry, We could decoupling the view and validation logic.
The text was updated successfully, but these errors were encountered: