• Resolved wenzelaus

    (@wenzelaus)


    Hi,

    I have three issues:
    1. When I use the popup with a mailchimp form I can successful register my email-address and name. But the confirmation popup (showing the thanks text) is displayed twice! See heidihofer.com (popup is shown on every page after 7 seconds.
    2. Why is the popup not ajax? Meaning after I press submit for my newsletter subscription the page is reloaded?!
    3. I use my site on two languages. Does boxzilla support this?

    Thanks a lot,
    Michael

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Michael,

    1) This seems to be an issue with WP Rocket. They are loading the Boxzilla script in their cached minification file, but not “dequeueing” the default script that our plugin loads. Therefore, the script is loaded twice.

    We are pushing out a workaround for this later today but this is really something that should be fixed in WP Rocket.

    2) This issue is related to #1. Upon loading your page, the minified file is throwing a JavaScript error which prevents all other code (that comes after) from running. Please check your console log when viewing your site to see the error. This is related to WP Rocket’s minification, and something they should fix.

    3) Yes, but not really in any special way on itself. I would go about this by creating seperate boxes for each of your languages and then use the “load this box if..” rules for only loading the correct box for each or your languages.

    If the default rules don’t cut it then you can always use the available filter hooks to set up advanced loading rules.

    Hope that helps. If not, let me know!

    Thread Starter wenzelaus

    (@wenzelaus)

    Hi Danny,

    thanks a lot for your effort, your reply and the update.

    I installed it yesterday and unfortunately it does not seem to resolve the issues. Ajax still does not really work and the popup is displayed twice after subscription. Is it possible to have another look on heidihofer.com?

    Thank you very much and have a great day,
    Michael

    Plugin Contributor Lap

    (@lapzor)

    Is the problem solved once you disable WP-Rocket?

    Thread Starter wenzelaus

    (@wenzelaus)

    Hi,

    I tested it once more. Now (probably trough a WP Rocket update) the double existing window is gone but ajax still does not work. Only if I deactivate the minifications of WP Rocket ajax works fine. Is this on your side? If not I could try to exclude your js files?! Could you send me these?

    Thanks,
    Michael

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Michael,

    It really shouldn’t be something on our side, most likely some other script in the minified file is throwing an error which will consecutively stop all other JavaScript code that comes after in that file from executing.

    On a related note: with the rise of HTTP/2 combining multiple files into a single file will have less of an effect, as multiple HTTP requests will be just as fast.

    The file you’ll have to exclude in your WP Rocket config is this one:

    
    /wp-content/plugins/mc4wp-premium/ajax-forms/assets/js/ajax-forms.min.js
    

    Hope that helps. If not, let us know please!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Confirmation Popup is displayed twice’ is closed to new replies.