We introduced it a couple of 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?”
Update: with Stripe 4+, the Apple Pay button has been removed from the checkout page, so the code isn’t accurate anymore
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!
Leave a Reply
You must be logged in to post a comment.