If you switch to horizontal layout you will get a paypal button that contains the ‘buy now’ text. However in horizintal layout you might lose the SEPA button.
As for now the plugin lacks two configuration options label and tagline
Tagline is set to false by default in “wc-gateway-ppec-smart-payment-buttons.js” and label depends on the button layout in “class-wc-gateway-ppec-cart-handler.php”.
This needs to be addressed asap. I would love to prepare a pull request at github but I have no spare time during the last weeks of the year.
Hello,
thank you for your answer. You are right, if setting is set to “Horizontal” layout, there is text in button.
I will try to style this button using CSS, but I am not sure how to change text? Now it shows “Buy now”, even on German website. This was the code I used before:
/**paypal button text**/
add_filter( 'gettext', 'custom_paypal_button_text', 20, 3 );
function custom_paypal_button_text( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Proceed to PayPal' :
$translated_text = __( 'Place order', $domain );
break;
}
return $translated_text;
}
Any ideas how to adopt?
Thanks in advance and kind regards
René
The buttons come from Paypal. You can’t change the text. However in any ‘german’ WordPress installation I see ‘jetzt zahlen’.
Thats very bad. Text must be “Kostenpflichtig bestellen” as already mentioned above. This means I will have to search another plugin for PayPal ☹️
Thanks anyway!
Kind regards
René
Hello René,
I understand that you’re looking at the possibility of changing the text in the Smart Payment buttons
in WooCommerce PayPal Checkout.
As of now, it is only possible to customize other aspects of the button as per the instructions in Button Settings – Documentation.
That said, It would be great to have you add your ideas to the Ideas Board, which is where developers go to look for future plugin features and improvements.
Good morning Aashik,
thank you very much for your reply. I will add my request to ideas board.
Kind regards
René
Good morning, René 🙂
thank you very much for your reply. I will add my request to ideas board.
Thank you! I’ll mark this topic as solved for now. Please feel free to open a new topic if you have any other questions.