• Resolved Yaniv

    (@yaniv691)


    Hi,

    I’m using the popover plugin on my blog, which also has WP Super Cache installed. After having popup timing issues (it didn’t respect the cookie) with the “Footer Load” setting, I switched to “External Load”, which as I saw is best for use with caching systems. Now I have an even bigger issue – I have a form with some PHP code called via AJAX when the hits submit – this doesn’t happen with External Load! When the use hits submit, nothing happens, and also nothing relevant is shown in the console.

    Can can I get the popover plugin to play nice with WP Super Cache, including the on-submit, AJAX of course?

    Thanks,
    Yaniv

    https://www.ads-software.com/plugins/wordpress-popup/

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

    Greetings and thanks for posting! ??

    Could I ask what the code is that you’re using?

    You mentioned AJAX but the plugin doesn’t provide a way to add JavaScript. Did you have a custom method calling that code in the page?

    Is that code actually getting added to the page?

    Also, could you provide a link so we can see what’s being done?

    Thanks,
    David

    Thread Starter Yaniv

    (@yaniv691)

    The popup has an HTML form with a submit button. When clicked, some JS (on a separate JS file) does some AJAX. The click event is binded with jQuery.

    The is exactly what’s not happening i “External Load” mode.

    Unfortunately I can’t provide a link to the site that has the issue because it’s on a development site.
    I can provide a link to the production site, on which the popup is running on “Page Footer” mode.
    https://www.ravellosystems.com/blog/using-red-hat-satellite-bootstrap-environments-ravello-aws-ec2/

    The code running the AJAX code for the submit can be found in ravello.js (look for it in the page source, it’s in the head).

    Hi @yaniv691,

    Thanks for clarifying that and providing those details. It seems the issue has to do with the external load method loading the popover code after the page is loaded through AJAX.

    That I see, you’d have to somehow load that ravello.js with that method as well and I don’t see a way except to edit the plugin’s core files.

    If you wish to give something a try, you could try copying and pasting the code from ravello.js onto the end of the popover’s main JavaScript file at:
    \plugins\wordpress-popup\popoverincludes\js\popover-load.js

    Is that something you’d be wiling to try out?

    -David

    Thread Starter Yaniv

    (@yaniv691)

    Hi David,

    I tried this out – I copied the JS relevant to the popover button click to the popup core JS file you stated. I did this on our development site:
    https://site-sitedev41113bpi-pwii0f84.srv.ravcloud.com/blog/wp-content/plugins/wordpress-popup/popoverincludes/js/popover-load.js

    But this didn’t fix the issue… What am I missing?

    Hi @yaniv691,

    Thanks for giving that a try, it seems likely the only way to go about this would be through some custom code.

    I’d love to look more into this though if you wouldn’t mind sending through an admin login. I could then post back here with a solution.

    If that works for you, simply submit details through here:
    https://premium.wpmudev.org/contact/

    Just select “I have another question”, then in the Subject, include “ATTN: David” with a link to this thread in the message.

    How does that sound? ??

    Cheers,
    David

    Thread Starter Yaniv

    (@yaniv691)

    Hi David,

    Thanks for your reply. Infortunately, I cannot give you access to the admin. Is there any other way of handling this?

    Thanks,
    Yaniv

    Hi @yaniv691,

    Hope you’re well today! ??

    Hmm, if there’s any feasible way you can think of to provide all the code and configuration involved (WP Cache has quite a lot of configuration options), I’ll gladly see how I can replicate that to get it sorted.

    Admin and FTP access would be optimal given everything involved, being very specific regarding WP Cache, Pop up, your custom JavaScript code and the interaction involved between them.

    If there’s some way you can think of that I could replicate that scenario, I’ll be happy to look into that.

    Cheers,
    David

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Popup issue with WP Super Cache’ is closed to new replies.