Posted: 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 |
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, 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. |
|
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');
|
|
Dean, thanks for the code. that worked great. I really appreciate your help. This will really help in the registration process. Randy |
|
You’re welcome! |
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.