Support

Home Forums Event Espresso Premium Postage option for tickets

Postage option for tickets

Posted: April 18, 2018 at 5:28 am


Ledbury Poetry Festival

April 18, 2018 at 5:28 am

Hi. I see this question has been asked before but I can’t make the solution at

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

work for us. The questions work fine but the postage charge does not get added at any point.

I’ve taken great care to make the question options match those in the code (by copying the questions from the snippet) but the charge never appears.

This cose appears to be a couple of years old now – do you know it if still works? This is quite important for us as we post around 100 – 200 lots of tickets over our festival period and, apart from covering postage cost, being able to apply a charge encourages people to print at home, thus reducing the load on our volunteers.

Other code in functions.php is fine.

Can you help please???


Josh

  • Support Staff

April 18, 2018 at 4:13 pm

Hi there,

If you’re trying to load the code from a theme’s functions.php, it’s too late in the request. This is because theme code runs after earlier WordPress core and plugins hooks. We recommend adding custom code from a site specific plugin. Here’s a guide that shows how to set up a site specific plugin:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


Ledbury Poetry Festival

April 19, 2018 at 1:30 am

Thanks for the quick response and that makes sense now. I’ll give that a go.


Ledbury Poetry Festival

April 20, 2018 at 3:22 am

Just to confirm this now works as intended and is perfect for what we need. I’ve also learned a lot about how plugins work. Thank you again. LPF.

The support post ‘Postage option for tickets’ 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