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

[QUESTION] Ship-to summary does not change when the housenumber is edited: how to fix #367

Closed
jdereus87 opened this issue Aug 11, 2023 · 1 comment
Labels

Comments

@jdereus87
Copy link

Stack
Magento: 2.4.4
Module PostNL: 1.12.5

Question
When a customer enters its address using the address check, the address gets correctly set in the sidebar shipping information (ship-to). However when the address is already filled, changing only the housenumber does not change the ship-to information in the sidebar.

The sidebar (module-checkout/view/frontend/web/js/view/shipping-information/list.js ) is subscribed to the quote.shippingAddress. When I load that UI module in my browser using:
require('uiRegistry').get('checkout.sidebar.shipping-information.ship-to');
I see that the customAttributes (tig_housenumber in this case) are not updated when only the housenumber is changed. Thus, changing only the housenumer does not change the quote.shippingAddress which does not trigger a reload of the ship-to information.
fyi: the address does get changed in the checkoutProvider

So I guess I see what the problem is, I am however a bit unsure about the correct solution. Is there any way we can observe a change in the tig_housenumber and still receive the correct address to trigger the createRendererComponent function in the list.js (which I guess we would need to make with a mixin?). Or is there a smarter way to do this?

Any help would be appreciated

@jdereus87
Copy link
Author

@tig-jeffreybranderhorst Any suggestion on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant