Remove PayPal buttons from WooCommerce

The code within this page is placed within Customize CSS/JS within WooCommerce theme option. You could probably place it directly into your functions.php file also.

Theme: oceanwp

Remove PayPal button from WooCommerce cart page

When the PayPal button is presented to customers on the checkout page, when it’s click it bypasses the address fields used which I want to store. I use this data to send API information to another system to automate account creation.

PayPal is still an option on the WooCommerce Cart page, but customers must enter all their billing information in first.

/* Remove the PayPal button from the WooCommerce Mini Cart Drop down */
.wcppec-checkout-buttons.woo_pp_cart_buttons_div {
    display: none;
}

Remove PayPal icon from the WooCommerce Cart Drop Down

There’s another PayPal button which is also presented in the WooCommerce cart drop down.

Again, if a customer clicks this link it will bypass the WC billing fields.

/* Remove the PayPal button from the WooCommerce Mini Cart Drop down */
.wcppec-cart-widget-spb {
display: none;
}

Leave a Reply