Support

Home Forums Event Espresso Premium Registration Set to Pending When User Completes Checkout With Autofill

Registration Set to Pending When User Completes Checkout With Autofill

Posted: July 17, 2018 at 9:57 am


Laurita Winery

July 17, 2018 at 9:57 am

We are experiencing an issue that looks to be related to the “autofill” settings of the browser. Lately we have had a lot of users complain that they cannot finalize their transaction, thus resulting in a Pending Registration, in the back end of Event Espresso.

Are you able to point us in the right direction to edit the checkout form within Event Espresso, maybe via a hook? Based on our tests, we’d like to edit the form so that Autofill is disabled.

https://gist.github.com/niksumeiko/360164708c3b326bd1c8


Josh

  • Support Staff

July 17, 2018 at 10:03 am

Hi,

You can try setting an autocomplete=off attribute on each of the form field inputs, which most browsers should respect, but please note some browsers will ignore it.

This code will add the attribute:

add_action('wp_enqueue_scripts', 'my_autocomplete_off_for_ee_forms', 20);
function my_autocomplete_off_for_ee_forms(){
    $custom_js = 'jQuery(document).ready(function($){';
    $custom_js .= '$( "input.ee-reg-qstn" ).attr( "autocomplete", "off" );';
    $custom_js .= '});';
    wp_add_inline_script('ee_form_section_validation', $custom_js);
}

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

The support post ‘Registration Set to Pending When User Completes Checkout With Autofill’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 1 year, 3 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!