When an user registers for an event, and the payment method is set to Invoice, it would be ideal to not show them the receipt option as ‘receipt’ is something that should only be available if the payment has been made.
Understand that the ‘receipt’ indicates ‘ Pending Payment’ as status but the wording ‘Receipt’ itself seems confusing to our users.
How can we hide ‘Receipt’ from users unless the payment has been made? https://prnt.sc/qy91ms
It’s fine to display the receipt once the payment has been made though like on the [ESPRESSO_MY_EVENTS] shortcode page for a logged in user.
Place the copy in the root directory of your child theme.
Edit that copy of the template and change this line:
if (! empty($TXN_receipt_url)) : ?>
To this:
if (! empty($TXN_receipt_url) && $transaction->status_ID() === EEM_Transaction::complete_status_code) : ?>
The button will now not load if the transaction has not been completed (no monies are owed).
Viewing 1 reply thread
The support post ‘Hide Receipt from users unless payment has been approved.’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.