When you click on the invoice button, the following text comes up ‘You have selected “Invoice” as your method of Payment. I would like to edit the text in the yellow box that comes up under that text ‘After finalizing your registration, you will be transferred to the payment overview where you can download your invoice’. Is this possible?
function replace_invoice_message($content)
{
$content = str_replace('After finalizing your registration, you will be transferred to the payment overview where you can download your invoice.', 'MYNEWPHRASE',$content);
return $content;
}
add_filter('the_content','replace_invoice_message');
The above code can go into your theme’s functions.php file or a custom plugin. Be sure to update “MYNEWPHRASE” to something else.
I tried this on Friday but only just got back to responding now, I added the information above to the functions.php file for the theme in use and the text still comes up unchanged, can you advise?
If that doesn’t work, and it may be more bullet-proof anyway, you can use a function that makes use of the gettext filter instead of the_content filter. This tutorial has some example code that includes a function that uses the gettext filter:
I took you advice and its doing what was requested.
Thanks for the help!
Viewing 4 reply threads
The support post ‘EE4 Edit yellow text box when selecting invoice option for payment’ 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.