Support

Home Forums Event Espresso Premium Pre-approval events process questions

Pre-approval events process questions

Posted: April 20, 2021 at 3:38 pm


krays

April 20, 2021 at 3:38 pm

Hello
We’re using EE for events with admin-approved registrations only and would be glad if you could help us with two issues:
(1) We would like to finalise registrations when users complete and submit a valid reg form. Currently, completing the form leads to a useless page with a “payment not required at this point” msg and users need to click another button to complete their registrations. This leads to abandoned registrations because people don’t understand why they need to click another button here. As this is possible with admin registrations, we assume there’s a way to implement this for user registrations too. I have asked this before, a month ago, and I would be super grateful for any help with this: How can we remove this superfluous registration step?
(2) How can we show conditional content on the Thank-You page depending on whether it’s the TY-page after registering or after successful payment? I haven’t managed to find any methods/properties to differentiate between these situations. Probably I missed out on something 🙂

As our template is based on Timber, solutions using EE methods/objects rather than template hooks would be much appreciated if possible.


Tony

  • Support Staff

April 29, 2021 at 8:04 am

Hi there,

Firstly, my apologies for missing your other post.

Wrt #1, I’ve asked one of our developers for some feedback on this to see what we can do.

(2) How can we show conditional content on the Thank-You page depending on whether it’s the TY-page after registering or after successful payment? I haven’t managed to find any methods/properties to differentiate between these situations. Probably I missed out on something 🙂

If payment is made in full you could use the Registration Status and/or the transaction status.

When a transaction’s total_amount_owed is equal total_amount_paid, that transactions status will switch to ‘Complete’, before that it will be ‘Incomplete’.

Also, when a transaction switches it status to complete, all monies have been paid, so it will also switch the registrations statuses of all registrations in that transaction to be ‘Approved’.

We have a bunch of hooks on the thank you page depending on where you want to output your additional data, you can see a list (along with some further details for customizing that page), here:

https://github.com/eventespresso/event-espresso-core/blob/master/docs/T–Tutorials/customizing-the-ee-thank-you-page.md

Most of those hooks are passed the EE_Transaction object which means you can pull pretty much any data you need from that.

To give an example on checking if a user has a ‘complete’ transaction, something like:

if( $transaction->status_ID() === EEM_Transaction::complete_status_code ) {
    //Transaction is complete, do something here.
}

If you can add some more details on what you’re trying to output and when I can give you some more specific examples if needed.

You must be logged in to reply to this support post. Sign In or Register for an Account

Do NOT follow this link or you will be banned from the site!