Posted: March 6, 2019 at 10:32 am
We’ve been a customer for several years now. It just occurred to us that there isn’t an option for registrants to give an optional donation if they so choose. Optional donations are a very standard thing that appear come with most other registration platforms out there. I’ve checked the EE forums and there are literally hundreds of results for other people wanting this feature. It also looks like it has been one of the top ideas on Trello for about 5 years now. So what’s the hold up? This definitely seems like something that should have been implemented in EE by now – preferably as “donation” question that can be added in the registration form.
Adding separate event tickets is not practical, because it makes the registration process more complicated, and someone might be willing to donate only $5, whereas someone else $100 or more. It would be nice to leave the amounts up to the user, rather than predefining them.
We are also not interested in spending $60 on this 3rd party plugin that many other threads suggest trying http://aparnascodex.com/downloads/price-modifier-for-event-espresso-4/
In this thread here https://eventespresso.com/topic/donation-add-on/ it mentions to use this PHP script as a solution https://gist.github.com/Pebblo/51c4284d2dbedb7c0e1daff0c562f1dc. I’m willing to give this a try, but there are two php scripts posted there (example-multiple.php and ) example.php). Would these just need to be added to the child theme function.php file?
Thanks for your help, and sorry for the rant.
More requests for other features (like recurring events, wait lists, and promotion codes) and the limited nature of time & resources are the main reasons why an optional donation amount hasn’t been developed yet. Also, whenever there’s a viable third party option available, we’ll generally give priority to features that are not available elsewhere.
With regards to the snippet, you would use one of the two examples there, and since some plugin hooks load before a theme’s function’s.php file loads, we recommend adding code snippets to a functions plugin. Here’s a link to a guide that shows how to add a functions plugin to your site: