Support

Home Forums Event Espresso Premium Invoice Fee

Invoice Fee

Posted: September 14, 2017 at 8:59 am

Viewing 7 reply threads


foots

September 14, 2017 at 8:59 am

Hi,

I need to add a £20 fee to the invoice payment method. I see this link below shows how to add 10% to the order.

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

How can I add a set value rather than a percentage?

Many thanks.


Tony

  • Support Staff

September 14, 2017 at 12:36 pm

Hi there,

You can use the EEH_Line_Item::add_unrelated_item() helper method in place of EEH_Line_Item::add_percentage_based_item().

For example https://gist.github.com/Pebblo/53834a96883b186e3a37156fa4a76bde

Note there are a few changes required to the original code to use that function.


foots

September 15, 2017 at 6:12 am

Hi Tony,

Thanks for the code, it worked perfectly.

All the best.


foots

September 22, 2017 at 1:31 am

Hi Tony,

After some further testing, I found that when a customer chooses invoices the £20 fee is added, however, if the customer then chooses to pay with Paypal, the £20 fee is still being added.

Is there a way to remove the fee when the customer chooses a different payment gateway?

Many thanks.


Tony

  • Support Staff

September 28, 2017 at 3:39 am

I checked into this and not without some significant custom development.

The surcharge is added when the user selects Invoice and finalizes, to remove that surcharge when another payment method is selected you’d to monitor the selected payment method and update the line items via ajax on the fly using ajax, that’s not something currently available within EE.


foots

September 29, 2017 at 1:37 am

Hi Tony,

Thanks for looking into this, do you think this would be added in the future?

Many thanks.


Tony

  • Support Staff

September 29, 2017 at 2:21 am

We do have plans to eventually add an option to add a surcharge within the gateway itself, however its not something we are working on right now so its not something that will be released ‘soon’.


foots

September 29, 2017 at 2:25 am

Thanks for the response, I’ll communicate it to our customer.

Many thanks.

Viewing 7 reply threads

The support post ‘Invoice Fee’ 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