Use standard Purchase Button instead of Paypal Smart Button

[ad_1]

Hello @bome

Thanks for reaching out to us, we’re here to help.

Could you share the URL of your site?

The PayPal smart buttons can be disabled to fall back to the default “Place order” button, redirecting the buyer to the PayPal website. You can also disable smart buttons in plugin options, just leave a “Classic checkout”.

To disable PayPal Smart Buttons and revert to the standard “Place order” button, which will redirect buyers to the PayPal website for payment, you can add the following filter:

add_filter('woocommerce_paypal_payments_use_place_order_button', '__return_true');

To customize the button text to “Order with obligation to pay”, you can modify the text returned by the woocommerce_paypal_payments_place_order_button_text filter. Replace the return value with your required text as shown below:

add_filter('woocommerce_paypal_payments_place_order_button_text', function() {
    return __( 'Order with obligation to pay', 'woocommerce' );
});

This is the result after the implementation of these two filters:

I hope this helps to solve the issue.

Kind regards,
Krystian

  • This reply was modified 3 hours, 53 minutes ago by Syde Krystian.
  • This reply was modified 3 hours, 47 minutes ago by Syde Krystian.

Thread Starter
bome

(@bome)

Thank you very much! That solves my issue indeed.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer