Home Forums Event Espresso Premium How can I add an optional fee to a ticket?

How can I add an optional fee to a ticket?

Posted: January 26, 2017 at 1:45 pm


January 26, 2017 at 1:45 pm

I have a conference to set-up with 9 different ticket prices. I want to add the option of adding a donation, and adding a optional 5k run fee to each ticket. I don’t want to add extra tickets since there are already 9 for different days and member vs non-member pricing. I want them to be able to CHOOSE to either add the donation and 5k fee or not, and have that ADD to the ticket price. I read about the price modifier in EE3 which sounds like what I need, but the surcharge option in EE4 doesn’t work because it adds it to all tickets. Is there some way I can do what I need to in EE4? Seems like a pretty common thing to have the ability to do without creating more tickets yet I don’t see how. Any suggestions?


  • Support Staff

January 26, 2017 at 2:24 pm

This would take a bit of custom development, but it’s possible. As an example, this is a code snippet from our custom code snippet library that shows how to add some optional fees based on whether the tickets get sent via mail or printed at home. You could do something similar to add a donation and a fee for a 5k run.


January 26, 2017 at 2:37 pm

No, all I want to be able to do is ask, “would you like to add a $5 donation to your ticket, yes or no” and if yes, it adds $5. Or, “would you like to participate in the 5k run, yes or no” and if they select Yes, it adds $16. The prices aren’t variable, either yes or no and it adds a fixed amount. It’s what the price modifier did in EE3 but there is no way to do this in EE4?


  • Support Staff

January 26, 2017 at 2:41 pm

The code I shared with you can be modified to let you do that with EE4.


January 26, 2017 at 2:42 pm

This is currently my ticket page I want to be able to add a drop down question or something that asks 2 things, 1)if they would like to donate $5 and 2) a if they would like to add the 5k run fee of $16. Based on the answer of yes, it would add either one or both of the fees to the ticket price. I can’t create more tickets, it would get ridiculously long. What options do I have?


January 26, 2017 at 2:47 pm

I’m not a developer, I just run the site so I’m not sure I’m capable of doing that. I purchased EE for ease of use, not to have to program it. This seems like a pretty simple function, and one that you already had developed for EE3 so why not add it? I saw the same question at least 50 times on the forums, so it’s definitely something people want. Frustrating.


  • Support Staff

January 26, 2017 at 2:57 pm

I totally agree it’s something people want, along with these other features too.

The thing about the EE3 price modifier was Event Espresso did not internally develop it. A developer was actually contracted by a client to develop it, and then offered it to Event Espresso for distribution, so we released it and supported.

I get your frustration, and it’d be great if I could tell you today we have an add-on that does what you want, with 0 coding required. For now though, there is a fairly straight forward solution to add optional fees to tickets. If you’d like some help with the available solution, please ask, we are here to help.


January 26, 2017 at 3:11 pm

OK, thanks. You mean with the custom code snippet? OK, I’ll take a look, maybe I can figure it out if it’s not too complicated.


February 7, 2017 at 10:37 am

So that code crashed my site so I won’t be using it. Instead, I added a ticket for the optional donation. My question now is, can some tickets within an event be set to allow the purchaser to only buy one of that ticket type, but other tickets in the same event they can purchase more than one? Is there any way to do that? thanks.


February 7, 2017 at 10:41 am

Disregard, I figured it out!

The support post ‘How can I add an optional fee to a ticket?’ 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  mcgwd 3 years, 4 months ago ago

Topic Tags


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