• When adding new store: wp-admin/post-new.php?post_type=wpsl_stores

    The plugin attempts to load a Google map, however for us initializeGmap() is called before the Gmap has fully loaded, resulting in a “google undefined” error and js buttons not working (in when adding store details page)

    Solution:
    1. in wp-store-locator/admin/js/wpsl-admin.js, comment the initializeGmap(); call.
    2. in wp-store-locator/admin/class-admin.php when enqueuing google map script add a parameter: callback = initializeGmap

    Please let me know what you think; perhaps you can do it better than this.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    I don’t quite understand why your WordPress is calling initializeGmap() before wp store locator does. Are you using other Google Map instances in the same page/post? We’ve never heard of this behaviour you are commenting, but we would like to help you.

    Perhaps you can write a support ticket with more information of your wordpress installation.

    Regards,

    Thread Starter Bivek

    (@bivek)

    For our wp, initializeGmap() is called before the gmap(js) has fully loaded,

    So I solved it using the above, thought it might be helpful to the plugin author.

    Ok, thanks for the feedback, we will take it into account ??

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘js buttons not working when adding store details’ is closed to new replies.