Support

Home Forums Event Espresso Premium Thank you Message

Thank you Message

Posted: July 10, 2014 at 6:07 pm

Viewing 3 reply threads


Von Nostrand

July 10, 2014 at 6:07 pm

Hi Guys

I’ve had a good search and couldn’t find anything. Perhaps I’m missing something obvious. But I would like to add a message on the Thank You page for completed payments.

I know the Thank You page renders payment_overview template. I am a complete coding rookie but I imagine something like

<?php
if ($payment_status="Completed") {
  echo "My message for completed payments";
} else {
  echo "My message for non completed payments";
}
?>

Would something like this work?

thanks for your help, cheers


Lorenzo Orlando Caum

  • Support Staff

July 10, 2014 at 7:38 pm

Hi Von,

Please try this:

switch ( $payment_status ) {
  case 'Completed':
    // tracking code goes here
  break;
     
  default:
  echo "";
  break;
}


Lorenzo


Von Nostrand

July 10, 2014 at 7:44 pm

Hi Lorenzo

Thanks for your help. Very much appreciated.

Just to confirm, can I use your code in addition to having the $payment_status_translated echo later on in the payment_overview

E.g:
My Message (using your code)

Payment Overview Data
event
registrant
payment type
etc…


Von Nostrand

July 11, 2014 at 1:59 am

This one is now resolved, I have been able to achieve what I wanted using the code, thanks.

Viewing 3 reply threads

The support post ‘Thank you Message’ 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