Support

Home Forums Event Espresso Premium Changing check out button test broken

Changing check out button test broken

Posted: October 15, 2015 at 10:50 am

Viewing 1 reply thread


denise

October 15, 2015 at 10:50 am

HI,

I was following this article:
https://eventespresso.com/wiki/customize-checkout-registration-button-text/

For the first set of code:
function ee_proceed_to_button() {
return ‘Go to’;
}

add_filter (‘FHEE__EED_Single_Page_Checkout__registration_checkout__button_text__proceed_to’, ‘ee_proceed_to_button’);

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 );

This should change the button to: “Go to Payment Processing.” but when I try it my button says “Go toPayment Options”

This was working I don’t know which update broke it.


Lorenzo Orlando Caum

  • Support Staff

October 15, 2015 at 11:13 am

Hi, please use this example instead:

https://eventespresso.com/topic/upgrade-to-v4-6-28-has-broken-my-change-to-proceed-to-payment-options-button/#post-158294


Lorenzo

Viewing 1 reply thread

The support post ‘Changing check out button test broken’ 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