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

show_hide_address_fields checkbox not loading #66

Open HyperC opened 1 year ago

HyperC commented 1 year ago

Sometimes the show_hide_address_fields checkbox isn't loaded in the frontend, if that setting is turned on in the backend. Best tested with an incognito browser. The following errors are shown in the console:

jQuery. Deferred exception: Cannot read properties of undefined (reading 'show_hide_address_fields') TypeError:
Cannot read properties of undefined reading show hide address fields")
jquery.]s:4050
at UiClass.initialize xxxx/nl NL/FlektoPostco de/js/form/element/house-number-select.js:18:31)
at UiClass.initialize (xxx/nL NL/mage/utils/wrapper.js:109:34)
jQuery. Deferred exception: Cannot read properties of undefined (reading 'show _hide_address_fields') TypeError:
jquery.js: 4050
Cannot read properties of undefined (reading 'show hide address fields")
at UiClass.initialize (https://xxx/nl NL/Flekto Postcode/js/form/element/address-autofill-field.js:17:31)
at UiClass. initialize (https://xxx/nl_NL/mage/utils/wrapper. js: 109:34)
JSeverein commented 1 year ago

We also have the same issue. It causes the address fields to not load, which is a serious blocker. When is this expected to be fixed?

JerrySmidt commented 1 year ago

No success with reproducing this issue so far. If you have a staging environment with this bug where we can take a look, please contact Postcode.nl and we'll check it out.

bramwebfant commented 3 months ago

I've also encountered this issue. The way I reproduced it was to go through the entire checkout process, during payment click cancel to go back to the shop, and navigate back to the checkout. With these steps, I've managed to reproduce it 100% of the times.