Support

Home Forums Event Espresso Premium How to change the text on the braintree 'Pay Now' button

How to change the text on the braintree 'Pay Now' button

Posted: August 24, 2016 at 8:08 pm

Viewing 1 reply thread


Adam Bowie

August 24, 2016 at 8:08 pm

I would like to capitalize the ‘Pay Now’ button on the checkout page. I have tried the following function but I will admit I’m not that savvy with functions and it broke the site. I have commented it out for the moment. Any help would be great. Thanks.

function eea-braintree-di-button-btn( $submit_button_text, EE_Checkout $checkout ) {
if ( ! $checkout instanceof EE_Checkout || ! $checkout->current_step instanceof EE_SPCO_Reg_Step || ! $checkout->next_step instanceof EE_SPCO_Reg_Step ) {
return $submit_button_text;
}
if ( $checkout->next_step->slug() == ‘finalize_registration’ ) {
$submit_button_text = ‘PAY NOW’;
}
return $submit_button_text;
}

add_filter ( ‘FHEE__EE_SPCO_Reg_Step__set_submit_button_text___submit_button_text’, ‘eea-braintree-di-button-btn’);


Josh

  • Support Staff

August 25, 2016 at 9:59 am

Hi Adam,

In this case you’re really not changing the actual text (like for example, if you wanted to change it to be “Pay Online Now”, that would be a text change).

Instead, you can change the text styling by adding the following to your custom stylesheet/theme CSS options:

#eea-braintree-di-button-btn {text-transform:uppercase;}

Viewing 1 reply thread

The support post ‘How to change the text on the braintree 'Pay Now' button’ 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