• ResolvedPlugin Author Stonehenge Creations

    (@duisterdenhaag)


    How can help me out?

    When in Edit Event with the Ajax Search.
    It turns out that Events Manager is fetching the location coordinates in a way I cannot figure out.

    In em-actions.php an Ajax Search is defined, which returns all location values, except the coordinates. Those values are used in the events-manager.js to fill the form fields.

    For the life of me, I cannot figure out how they get the coordinates in the search form.

    I can manually alter their code and then everything works: just 4 lines of code (2 in each file) and voilà. But that is not the way to go, unfortunately.

    Who can help me by creating a new Ajax Search that does just what the EM does, but also return the coordinates, please? I can not get it done myself ??

Viewing 1 replies (of 1 total)
  • Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    For now I have build a little workaround…

    It only applies to the Edit Event Page if you have the Ajax Search enabled (so, not applicable if you are using the Selection Dropdown option).

    The coordinates are re-fetched according to the address in the form fields. So, if upon creating the new location you have dragged the marker, the search will be slightly off. On the front-end Event Page is will show the correct (dragged) position, though. ??

Viewing 1 replies (of 1 total)
  • The topic ‘HELP NEEDED! Ajax Search.’ is closed to new replies.