Support

Home Forums Event Espresso Premium EE4 Surcharge per ticket

EE4 Surcharge per ticket

Posted: July 17, 2017 at 3:50 am

Viewing 4 reply threads


werbe

July 17, 2017 at 3:50 am

Hi,
I need a little help? I’m using this code snippet https://github.com/eventespresso/ee-code-snippet-library/blob/master/checkout/bc_ee_apply_transaction_surcharge.php and it is working great with one ticket per transaction, but when I add more tickets it only displays the last ticked selected surcharge in the invoice. Is it possible to display all the surcharges in the invoice for every ticket in the transaction.

P.S. I also tried this code snippet https://github.com/eventespresso/ee-code-snippet-library/blob/master/checkout/bc_ee_add_product_surcharge.php but this code doesn’t work at all. I’m using EE4 4.9.42.p

Best regards


Josh

  • Support Staff

July 17, 2017 at 8:13 am

Hi there,

If you intend to charge a surcharge for each ticket, you shouldn’t be using those code snippets. Instead, you can set the surcharge amount in the advanced options section of the ticket price editor.


werbe

July 17, 2017 at 9:49 am

Yes, but I think i didn’t explained my problem correctly 🙂 I have a dropdown where the user can choose between 4 different options (no-name, name, name surname, name nickname surname) it’s for printing they name on the apron they get for every event and the price depends on the option the user chooses, so when I click to buy a ticket with multiple attendees, let’s say 2 I add all the informations, select one option from the dropdown for the first and another option for the second attendee, and then on the checkout step where you get the payment information it only display the selected option from the second attendee, but I need it to display for both of them and also sdd the surcharge for both options.

Thank you for the quick response!


Josh

  • Support Staff

July 17, 2017 at 10:02 am

In that case you would use this one:

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

The code does work but you’ll need to make sure to follow the instructions to the letter and be sure there’s no debug code left in.


werbe

July 18, 2017 at 5:04 am

Thank you, I tried it again and now i works!

Viewing 4 reply threads

The support post ‘EE4 Surcharge per 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.

Event Espresso