• Resolved markisu72

    (@markisu72)


    Hi,

    when selecting PayPal as payment option, the following text is shown (in German)…
    Wenn du auf “Weiter zu PayPal” klickst, wirst du zu PayPal weitergeleitet, um deinen Kauf abzuschließen.

    Where can I change this text? There is no “Weiter zu PayPal” Button… is that the default text?

    Thx
    Markus

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Krystian Syde

    (@inpsydekrystian)

    Hello @markisu72

    This way:

    This text is also exposed via a WordPress filter, so you can override it in your theme’s functions.php or a custom plugin:

    add_filter(  
    'woocommerce_paypal_payments_place_order_button_description',
    function( $text ) {
    return 'Dein eigener Text hier.';
    }
    );

    Similarly, the button label “Weiter zu PayPal” (translated from “Proceed to PayPal”) can be changed via a separate filter: 

    add_filter(  
    'woocommerce_paypal_payments_place_order_button_text',
    function( $text ) {
    return 'Weiter zu PayPal'; // or whatever you prefer
    }
    );

    Let me know if that fixes the problem.

    Kind regards,
    Krystian

    Thread Starter markisu72

    (@markisu72)

    Hi Krystian,

    the checkout page description in wp-admin plugin settings just adds or removes an additional Text there.

    woocommerce_paypal_payments_place_order_button_description is the one which changes the text I mention (the second line… “Wenn du..:”…

    I just wonder, why there is two texts… one I can change in the plugin settings and one I can change only by PHP… is that how it should be?

    Secondly, the standard text refers to a button called “Continue to PayPal” but there is no such button on the checkout page… I have the “Jetzt kaufen” (place order) button (the standard Woo order button) which redirects to PayPal if selected but no separate PayPal button (except the express checkout buttons at the top of the page)… Am I missing something here?
    It disturbs me a bit having a text from your plugin pointing to a button (from your plugin) which is not there.

    Best
    MArkus

    PS: also, if I clear the text in the plugin settings (“My individual…”), it still renders an empty <p></p> , which looks pretty ugly 😉 is there a way to avoid this?

    • This reply was modified 1 month, 4 weeks ago by markisu72.
    Thread Starter markisu72

    (@markisu72)

    Ok, I fixed it by returning an empty string for woocommerce_paypal_payments_place_order_button_description and adding my own text inside the plugin ui…

    Still wondering, if I miss a “Weiter to PayPal” button in general

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.