Support

Home Forums Event Espresso Premium EE4 SPCO Add Static Amount to Order

EE4 SPCO Add Static Amount to Order

Posted: January 5, 2019 at 6:15 pm


jmahan

January 5, 2019 at 6:15 pm

How can I add a fixed amount to orders that will show during Checkout and in the Transaction (e.g. $5 for order handling fee) using Authorize.Net AIM. THX.


Tony

  • Support Staff

January 7, 2019 at 8:11 am

Hi there,

Is this a handling fee that is just added to all transactions or is it based on a selection from the user?


jmahan

January 7, 2019 at 10:38 am

This is a handling fee added once for the entire order without any user selection.
It has no relationship to purchasing any specific events (e.g. MER) or tickets.


Tony

  • Support Staff

January 7, 2019 at 4:29 pm

I checked and we don’t have a snippet that will do that for you, the closest we have currently is this snippet:

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

However, that relies on a selection made on the registration form but if you are comfortable with PHP it could be modified to always apply the surcharge regardless.


jmahan

January 12, 2019 at 5:09 pm

I will keep this in mind for SPCO. However, since my goal is to charge a fixed fee for the entire order I have some challenges when having tickets that may or may not be purchased at the same time. For example, want to charge $1.00 fee to the order. but Primary Registrant may buy either Ticket1 or Ticket2 or both Ticket 1 and Ticket2. So would trigger $2 fee charge if both purchased using this approach.

MER obviously is more complex.

THX


Tony

  • Support Staff

January 14, 2019 at 6:56 am

For example, want to charge $1.00 fee to the order.

So you want to add a single charge to the transaction? You can do that with some modifications to the snippet I gave you.

but Primary Registrant may buy either Ticket1 or Ticket2 or both Ticket 1 and Ticket2. So would trigger $2 fee charge if both purchased using this approach.

So you want to charge a surcharge per ticket? Or are you saying this is how you don’t want it to work?

The support post ‘EE4 SPCO Add Static Amount to Order’ 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