Support

Home Forums Event Espresso Premium Change Payment Instructions

Change Payment Instructions

Posted: August 8, 2014 at 8:39 am

Viewing 5 reply threads


Randy

August 8, 2014 at 8:39 am

Hi,

I would like to change the default text for payment instructions for checks. when the Check button is selected a text box appears with the text:

After finalizing your registration, you will be transferred to the payment overview where you can view details of how to complete your payment by Check.

What I would like to include in that text box is instructions for options on paying by check. I tried to add those instructions under the payments menu which works but those instructions appear only after the registration is finalized. I would prefer the instructions appear before finalizing.

I attempted to include a function in functions.php that I found in another post but it did not seem to impact the text. Is there another way to make this change?

thanks
Randy


Lorenzo Orlando Caum

  • Support Staff

August 8, 2014 at 1:02 pm

Try this:

function ee_override_check_payment_preview_messaging($phrase) {
  $phrase = str_replace('After finalizing your registration, you will be transferred to the payment overview where you can view details of how to complete your payment by Check.', 'Replace me with a new phrase.', $phrase);
  return $phrase;
}
add_filter('the_content', 'ee_override_check_payment_preview_messaging', '175');


Lorenzo


Randy

August 11, 2014 at 9:07 pm

Lorenzo, that worked perfectly. Thank you!

If I may ask now, could I apply the same code to the yellow box that is displayed for paying with bank draft?

These yellow boxes that come up are a great place to customize the instructions for the payment process since they come up before payment is executed and I can explain in detail the payment process since all our payments are done external to EE4.

Thanks for your help.


Dean

August 12, 2014 at 3:48 am

Hi,

Yes you can, just like this:

function ee_override_check_payment_preview_messaging($phrase) {
  $phrase = str_replace('After finalizing your registration, you will be transferred to the payment overview where you can view details of how to complete your payment by Check.', 'Replace me with a new phrase.', $phrase);

    $phrase = str_replace('After finalizing your registration, you will be transferred to the payment overview where you can view details of how to complete your bank transfer.', 'Replace me with a new phrase2.', $phrase);

  return $phrase;
}
add_filter('the_content', 'ee_override_check_payment_preview_messaging', '175');


Randy

August 12, 2014 at 6:45 am

Dean, thanks for the code. that worked great. I really appreciate your help. This will really help in the registration process.

Randy


Dean

August 12, 2014 at 6:48 am

You’re welcome!

Viewing 5 reply threads

The support post ‘Change Payment Instructions’ 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