Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Complete Purchase Button Gray Out | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Complete Purchase Button Gray Out

Complete Purchase Button Gray Out

Posted: September 21, 2012 at 3:27 pm

Viewing 1 reply thread


dwall

September 21, 2012 at 3:27 pm

Hi,

At the end of the registration process, there is a “Complete Purchase” submit button. We’re having an issue where, occasionally, people who are paying for an event (we use Paypal Pro Gateway) get charged twice. I think it is because they are double-clicking instead of single clicking on that “Complete Purchase” button.

With that description in mind, is there an easy way to simply add a javascript to that button, as in:

input type="submit" value="submit" name="submit"
onclick="
if(!submitted) {
this.value = 'Please wait...';
this.disabled = true;
submitted = true;
return true;
} else {
return false;
}
"

The other thing is…what php page do I find that submit button?


Garth

  • Support Staff

September 24, 2012 at 8:17 am

I can’t comment about how to add the JS to the button, but the file you want to edit is the /templates/confirmation_display.php file.

You might want to consider using the Custom Files addon (http://staging.eventespresso.com/product/espresso-custom-files/) so you don’t overwrite your changes when you upgrade to newer versions.

Viewing 1 reply thread

The support post ‘Complete Purchase Button Gray Out’ 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.

Event Espresso - Staging Server