Support

Home Forums Event Espresso Premium Complete Purchase Button Gray Out

Complete Purchase Button Gray Out

Posted: September 21, 2012 at 3:27 pm


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 (https://eventespresso.com/product/espresso-custom-files/) so you don’t overwrite your changes when you upgrade to newer versions.

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