Support

Home Forums Event Espresso Premium TXN ID / CHQ # in messages

TXN ID / CHQ # in messages

Posted: January 13, 2016 at 7:57 pm

Viewing 3 reply threads


dcorso

January 13, 2016 at 7:57 pm

Hi,

I have set a TXN ID / CHQ # for a transaction and would like this to come through on the registration email. It has a [TXN_ID] shortcode, but it only returns the base ID for that transaction. How can I get this field to display? Do I need to create a custom shortcode?

Cheers


Tony

  • Support Staff

January 14, 2016 at 3:07 am

Hi there,

[TXN_ID] is the shortcode the ID of the full transaction object, your TXN ID / CHQ # is the TXN ID of the payment within that transaction.

So you need the TXN_ID of the latest payment within a transaction.

Which message template are you looking to add this to?

Also are you using the latest version of EE4? (Currently 4.8.30)


dcorso

January 14, 2016 at 4:38 am

Hi Tony, we are running 4.8.25.p. I can update though. I am looking to add this into the registration email as I am not sending out the payment processed email as it’s not really necessary in this case. Registration is approved upon payment, so it should be accessible as such. Thanks


Tony

  • Support Staff

January 14, 2016 at 11:16 am

I did some digging into this and to get those details within that message template you’ll need to add your own custom shortcode to pull in the payments for the registration and then output the txn_id from within that.

Are you comfortable with PHP?

Take a look at these threads for some info on creating custom shortcodes:

https://eventespresso.com/topic/venue-against-each-date/

https://eventespresso.com/topic/custom-shortcode-for-the-registration-approved-message/

You may need the help of a developer to create this.

Viewing 3 reply threads

The support post ‘TXN ID / CHQ # in messages’ 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