Javascript "Cannot read property 'insert' of undefined" error after selecting other pickup location
Closed this issue · 1 comments
Dear,
We encounter a problem on a Vanilla Magento 1 Enterprise installation with versie 1.12.3 of the PostNL module:
"deliveryOptions.js?v=1.12.3:5243 Uncaught TypeError: Cannot read property 'insert' of undefined"
It occures when selecting an other pickup point from the google maps popup. After selecting the location and clicking on 'Opslaan' the error occures and the popup won't close.
I could reproduce it on a clean Magento 1.14.1 Magento Enterprise installation.
It has something to do with the method "renderAsOsc()" that tries to insert html in an DOM object ('postnl_add_moment .option-list') that does excist in the Magento onepage checkout. It only excist in the onestepcheckout templates.
$$('#postnl_add_moment .option-list')[0].insert({ bottom : html });
Hello keijsers,
Thank you for feedback, we really appreciate it! We are aware of the bug and it is on our backlog. We can assure that this will be implemented when the new version gets released. I would recommend keeping an eye on our release notes page: https://confluence.tig.nl/display/TIGSD/Release+notes+van+de+PostNL+Magento+extensie
Or you could like our Facebook page we will also put a message out when it's been released: https://www.facebook.com/TIG.NL/
Best regards,
Jeffrey Branderhorst