Posted: September 8, 2015 at 9:59 am
|
Where can I edit the popup espresso notice message which says: You have selected “Invoice” as your method of payment. Please note the important payment information below. |
Hi there, The easiest way to do this is to translate the phrase to however you prefer. You can do this using the function shown here: https://eventespresso.com/wiki/how-to-change-wording-with-poedit/#custom-function The string you need to translate would be ‘You have selected “%s” as your method of payment. Please note the important payment information below.’ So your function would look something like this: function mycustom_filter_gettext( $translated, $original, $domain ) { // This is an array of original strings // and what they should be replaced with $strings = array( 'You have selected "%s" as your method of payment. Please note the important payment information below.' => 'YOUR CUSTOM TEXT HERE', // Add some more strings here ); // See if the current string is in the $strings array // If so, replace its translation if ( isset( $strings[$original] ) ) { // This accomplishes the same thing as __() // but without running it through the filter again $translations = get_translations_for_domain( $domain ); $translated = $translations->translate( $strings[$original] ); } return $translated; } add_filter( 'gettext', 'mycustom_filter_gettext', 10, 3 ); Add that to a Site Specific Plugin and it will translate that text for you. (Note the %s has the selected gateway passed to it, so if you want to name the gateway in your custom text, use %s in your custom text) |
|
|
Hi, If you are just wanting to change the wording you have two options: 1) Use the filter that comes with that message: FHEE__Single_Page_Checkout__registration_checkout__selected_payment_method 2) Use the language files or gettext to change wording: https://eventespresso.com/wiki/how-to-change-wording-with-poedit/ Please note that the actual wording for translations is: You have selected “%s” as your method of payment. Please note the important payment information below. |
|
The problem I have with it is that it says “below” but it always seems to open below the important Info box, which means its misleading. I was just going to remove the below so that irrespective of where it pops up it is still correct. |
Hi, were you able to change the messaging using one of the suggestions shared prior? — |
|
|
I was, yes, Thank you all. |
The support post ‘edit notice 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.