Question:
[ I created an iframe and a GitHub link with the help of chat gpt, allowing customers to select a pickup point on the Hungarian gls map. After selecting a pickup point, they can click a confirmation button.
However, one problem remains: despite chat gpt suggesting that it should work, the selected pickup point is not copied into the “Add Note” section (which I renamed to “Pickup Point Will Appear Here”). For some reason, the information doesn’t get transferred.
I also tried another idea: after the customer selects a pickup point, the program places it into a text box, and a “Copy” button allows them to copy it to the clipboard. Then, next to the Add Note section, I placed a “Paste” button — but even this solution does not work.
Does anyone have any ideas? Thank you in advance!]
Hey the problem is, that: The custom GLS ParcelShop iframe successfully sends the selected point via postMessage and saves it into localStorage.
However, on the Wix Cart Page, the script cannot find the “Add a note” input field because the native Wix note field is sometimes hidden (collapsed) or loads dynamically inside the cart component.
As a result, the code cannot programmatically insert the GLS point into the note field after clicking the “Insert” button.
A more reliable method is needed: either delayed field detection (waiting for the cart page to fully load), or a different DOM query strategy to target the dynamic note field correctly. Do you have any idea? Thank you.
The way is described, all you have to do now is to folow and understand all the single steps to get your wished result.
Good luck!
And one more side-note! Keep always in mind → if you want to generate something unique, custom, or special → you can do it ONLY by —> CODE ← and only if the right APIs are available, especially it if comes to Wix-Products. This is why all those APIs were made, to be able to interact with all the given Wix-Elements inside of your Wix-Editor/Website.