Disabling Express Checkout for Specific Product ID
-
Howdy,
I’m currently facing an issue with WooCommerce and WooPayments.
I have a specific product that requires a payment plan via the Deposits & Partial Payments for WooCommerce plugin. However, despite this setup, the “Buy with Google Pay” button / express checkout option is still active, allowing users to bypass the partial payment requirement.
I’ve already contacted the support team of the Deposits & Partial Payments plugin, and was advised that the best approach is to disable express checkout solely for this particular product. I found this code snippet for removing express pay from a product page altogether:
add_filter( 'wc_square_display_digital_wallet_on_pages', function( $pages ) { return array( /* 'product', // Don't show Apple Pay and Google Pay on product pages */ 'cart', 'checkout', ); }, 10, 1 );
…but, unless it’s possible to force Apple Pay to work with the payment plan option, I want to only disable express checkout for a single, specific item in my store.
Could anyone here kindly guide me on how to disable the express checkout feature for just this one product? I’d prefer to avoid additional plugin installations if there’s a workaround within the existing setup.
Thank you in advance!!
- The topic ‘Disabling Express Checkout for Specific Product ID’ is closed to new replies.