• Hello, I’m using this plugin in addition to Easy Fancybox and Contact Form 7 plugins. I’m trying to set it up so that an email address for any store triggers a popup window which contains a contact form – either from the Info Window Popup in the map or within the store listings. I have tried adding it to the functions.php file but the popup isn’t triggered, yet using the code elsewhere on the page works fine. The example code I am using to trigger the popup is as below:

    Contact Us

    <div style=”display:none” class=”fancybox-hidden”>
    <div id=”contact_form_pop”>
    [contact-form 1 "Contact form 1"]
    </div>
    </div>

    Hope you can help as the rest of the plugin looks great.

    https://wordpress.org/plugins/wp-store-locator/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    When you say have added the code to the functions.php, you mean you used a filter to modify the template for the store locator?

    I will see if I can get it work myself with the Easy Fancybox and Contact Form 7 plugin either later today or tomorrow.

    Thread Starter md2885

    (@md2885)

    Yes, it was via one of the filters that you had listed.

    Thank you

    Plugin Author Tijmen Smit

    (@tijmensmit)

    So it’s a bit complicated to get it to work, not sure if it can even work the way you want to.

    I managed to get the contact 7 form to load in the search results, but then it submits to the admin-ajax with the store locator params set, which doesn’t work. Is the contact form supposed to use AJAX submit?

    You can see the code I used here. Maybe it helps you get started, and find a way to make it work after all. I first collect the output from the do_shortcode under the ‘contact_form’ key, and then use that key again to access the form in the search results.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    If you add that code to the functions.php, then do make sure to flush the transient cache, or enable debug ( settings -> tools ), otherwise you will get JS errors saying ‘contact_form’ is undefined.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Popup Contact form from Email Link’ is closed to new replies.