postcode-nl / PostcodeNl_Api_Magento2

A Magento 2 plugin that implements the Postcode.nl international address API
https://developer.postcode.eu/documentation/
BSD 2-Clause "Simplified" License
10 stars 13 forks source link

Save inputs to session checkout-data #35

Closed Steekvlam closed 3 months ago

Steekvlam commented 3 years ago

Currently when you fill in all fields and the address has been checked, when you go back to the shopping cart and return to the checkout the postcode check fields are empty and no address is showed.

Solution is to store the postcode values in de checkout-data and check them when available and fill in the fields.

JelleGe commented 2 years ago

Any update on this? Seems that this is not solved yet.

JerrySmidt commented 2 years ago

Didn't get this to work. Maybe later.

JelleGe commented 2 years ago

@JerrySmidt That's too bad. This does cause some issues in a live environment. Especially when a payment fails and the customer returns in the checkout, for example. Or when a customer returns to any page on the website and then returns to the checkout. Is it that hard to implement?

JerrySmidt commented 2 years ago

Agreed, this would be a nice feature to have. There doesn't seem to be much/any documentation on how to implement it, so it may take some time to find out how make this work.

If you have a solution, feel free to contribute of course.

JelleGe commented 2 years ago

@JerrySmidt Is there maybe a reference in this documentation? https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_form.html

or in a custom module that does save value in the cartCache https://github.com/sbodak/magento2-checkout-custom-form/blob/master/view/frontend/web/js/view/checkout/custom-checkout-form.js

JelleGe commented 2 years ago

See also the following topic about it:

https://magento.stackexchange.com/questions/359127/custom-checkout-field-save-input-value-in-session-magento-2-4/359157#359157

JelleGe commented 1 year ago

Any update on this?

JerrySmidt commented 3 months ago

This functionality has been implemented in 3.3.0.