Damian Way
September 7, 2015 at 5:08 am
Hi there,
I am trying to change the text on the “proceed to payment options” button but can’t seem to do it.
I know this could be something to do with my theme but wondered whether this should still be working?
I have used this method:
https://eventespresso.com/wiki/customize-checkout-registration-button-text/
And my code is:
function ee_payment_options_button( $translated, $original, $domain ) {
$strings = array(
'payment%soptions' => ' Payment Processing'
);
if ( isset( $strings[$original] ) ) {
$translations = &get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}
return $translated;
}
add_filter( 'gettext', 'ee_payment_options_button', 10, 3 );
Thanks
Damian
Damian Way
September 7, 2015 at 9:25 am
Add New Note to this Reply
Hi,
I have tried it with capitals as well:
$strings = array(
'Payment%sOptions' => ' Payment Processing'
);
Dean
September 8, 2015 at 4:53 am
Add New Note to this Reply
Hi Damian,
It looks like that code is out of date, I’m currently checking that with the other team members. Try this instead:
function change_payment_button_text($submit_button_text, $checkout) {
$submit_button_text = "Payment Processing";
return $submit_button_text;
}
add_filter('FHEE__EE_SPCO_Reg_Step__set_submit_button_text___submit_button_text','change_payment_button_text', 10, 2);