• Resolved renescr

    (@renescr)


    Hello,

    I am from Austria (same is for Germany) and by law text on buy buttons from commercial websites must be “Kostenpflichtig bestellen” – this is something like “order with costs” in English.

    As far as I can see this is not possible with Smart Payment Buttons anymore. Any ideas how I can solve this?

    Thanks in advance and kind regards
    René

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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.

    Thread Starter renescr

    (@renescr)

    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’.

    Thread Starter renescr

    (@renescr)

    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é

    Plugin Support Aashik P – a11n

    (@aashik)

    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.

    Thread Starter renescr

    (@renescr)

    Good morning Aashik,

    thank you very much for your reply. I will add my request to ideas board.

    Kind regards
    René

    Plugin Support Aashik P – a11n

    (@aashik)

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Text on Smart Payment Buttons’ is closed to new replies.