Support

Home Forums Event Espresso Premium eWay Custom Field

eWay Custom Field

Posted: January 18, 2015 at 3:41 pm

Viewing 1 reply thread


Craig Kirkwood

January 18, 2015 at 3:41 pm

Hi guys,
We’re running WP 4.1 and EE 3.1.36.5.P and we’ve been up and running for a year or so now…
Recently my client asked for a custom field to be added to the registration form and confirmation email.
That’s working fine but they’d also like that field to appear in the eWay records – either in the eWay ‘Invoice Reference’ field or at least the ‘Invoice Description’ field.
I’m wondering where this is done? Presumably in eWay/settings.php?
I’m just not quite sure how to go about this though..
Hope you can help?


Dean

January 19, 2015 at 1:16 am

Hi,

The file in question would be /wp-content/plugins/event-espresso/gateways/eway/eway_vars.php which already has the InvoiceDescription field laid out (though you should be able to inject the Invoice Reference field fairly easily).

The main issue would be that the custom question data no longer exists when at that point, though the $attendee_id (or use the $payment_data array that also has the attendee ID) does, so you would likely need to do an SQL search to get the question data.

Please note that there are no filters or hooks, so any modifications would either have to be done direct to the file (not recommended, updates WILL over write your changes) or to a custom gateway based on the eWay gateway.

If you require help with customising the gateway we have a list of recommended developers here: https://eventespresso.com/developers/event-espresso-pros/

Viewing 1 reply thread

The support post ‘eWay Custom Field’ 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