Support

Home Forums Event Espresso Premium Proceed to payment options button, can't change text

Proceed to payment options button, can't change text

Posted: September 7, 2015 at 5:08 am

Viewing 2 reply threads


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

Hi,

I have tried it with capitals as well:

$strings = array(
'Payment%sOptions' => ' Payment Processing'
);


Dean

September 8, 2015 at 4:53 am

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);
Viewing 2 reply threads

The support post ‘Proceed to payment options button, can't change text’ 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