Support

Home Forums Event Espresso Premium Add a fixed amount to every registration

Add a fixed amount to every registration

Posted: March 13, 2018 at 1:26 pm

Viewing 3 reply threads


CARLOS DURAN

March 13, 2018 at 1:26 pm

Hi:

I’m trying to figure out how to add a fixed amount to every registry, regardless of amount of people; that is, let’s say event costs $100 I need to add $10 to every registry; an individual registry would be $110, a group of 5 would be $510.

Any ideas on hooks or code that I can use for this?

Thanks in advance.


Josh

  • Support Staff

March 13, 2018 at 1:31 pm

To be clear that’s adding a fixed amount to every transaction (because a group of 5 is 5 registrations). There are hooks that allow for this and you’ll see them in use in this example code:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/checkout/bc_ee_apply_transaction_surcharge.php


CARLOS DURAN

March 13, 2018 at 1:33 pm

Hi Josh,

Thanks for the lightning-fast answer, however, I forgot to mention that I’m on EE 3.x, does that code work for EE3?


Josh

  • Support Staff

March 13, 2018 at 1:48 pm

The code example (and hooks) are only for Event Espresso 4. I don’t believe this type of functionality can be accomplished with Event Espresso 3.

Viewing 3 reply threads

The support post ‘Add a fixed amount to every registration’ 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