Remove Apple Pay Button on Product, cart & checkout Pages in Stripe Integration for WooCommerce

Remi | March 21, 2017 | in Tips

We introduced it a couple days ago: Apple Pay is now available for WooCommerce sites using Stripe. That’s great news! But, I noticed that a common request is :

“How can I remove the Apple Pay button on the product page?”

Because yes, the Apple Pay button is displayed on the product page, the cart and the checkout pages. So, here is a small function that will remove the Apple button on the single product page, you just need to copy and paste it in the functions.php file in your theme folder:

What about the cart page?

Also, if you want to remove the Apple Pay button on the cart page you can use this snippet:

And what about the checkout page?

and finally, if you want to remove it from the checkout page (…. humm… wait what would you do that?), use this one:

And that’s it!

The author

About the author Remi: Hey! My name is Rémi Corson, i'm a WordPress Expert Developer, i create high level themes and plugins, and i provide free stuff every week on this website!

Leave a reply