• Resolved jwaite0149

    (@jwaite0149)


    The Constant Contact WordPress plugin is on our website and a form created. It works fine when the stays on the same page after someone submits (“No page refresh” selected) – email address goes into the Constant Contact list(s) selected and I get an email. However, we’d prefer to have someone taken to a new page on our website when they click the submit button. That works fine – after the form is submitted, it goes to the URL entered in the “Redirect URL” field – BUT the form data is not saved to the CC list(s) selected and I am not getting an email. It seems to be simply redirecting the page and not doing anything with the form submission data (there’s no entry in the log file either). Plugin version is current and using eCAPTCHA version 2. What am I missing??

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Constant Contact

    (@constantcontact)

    Hi @jwaite0149

    To be certain, are you perhaps redirectin the user directly to a PDF file or similar as a perk for signing up? or are you redirecting them to a WordPress page, where you have a link provided to the file?

    The form relies on WordPress loading, so that it can listen to various hooks and process the submission. This process doesn’t occur when it’s directly to a file to be downloaded.

    Thread Starter jwaite0149

    (@jwaite0149)

    it is set to redirect to https://www.woodwellclimate.org/signup-welcome – a page that I set up on our website. I tested it several times in an attempt to figure out why the plugin form is completely bypasses saving the data to the CC list(s), sending me an email, and not writing to the debug logs.

    Thread Starter jwaite0149

    (@jwaite0149)

    I should also note that a couple of weeks ago I needed to disconnect the plugin and reconnect with a new authorization code – lists weren’t loading and that rectified the problem and they are properly connected to the plugin.

    Plugin Author Constant Contact

    (@constantcontact)

    hmm. While it definitely looks like it, I want to double check that that thank you landing page is making use of the wp_head() function. We rely in that to check if the incoming submission as a form ID and thus also if it has a redirect associated with it, and if yes, make sure we process the form. If there’s no usage of wp_head() then we’re not doing any of those parts.

    Thread Starter jwaite0149

    (@jwaite0149)

    Interesting to make an option in a plugin that then requires custom coding added to a page.

    So next step is the Constant Constact API reference to figure out what wp_head() should include? If not, could you please point me in the right direction? Thank you.

    Plugin Author Constant Contact

    (@constantcontact)

    Good day.

    We definitely understand why that could be felt, but at the same time making use of wp_head() in theme could arguably be considered so important to the overall functionality of WordPress and plugins, that we feel like we’re able to justify relying on it.

    Regarding how it’s used, it’s just a function call that’s placed between the opening and closing <head> tag for a given page. Inside that function is the do_action( 'wp_head' ) action call, that many thing will be relying on to load their own functionality.

    That said, we know that it is possible to make very specific template files, and some people are going to make those really reduced down to bare essentials, including not making use of say the header.php file, to better control exactly what all gets loaded in the <head> area. May or may not be what’s going on here. Worst case, if there’s reason that the wp_head() function shouldn’t be used here, we can provide a snippet of code that’s the exact that we use with the plugin, to try and work on say the init hook which is a bit more readily run, but could help with getting submissions processed. The easiest is going to be making use of wp_head() if it’s not already though.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.