Disable express checkout on specific product IDs
-
Howdy,
I’m currently facing an issue with WooCommerce using the plugins Deposits and Partial Payments for WooCommerce – Pro and WooPayments.
I have a specific store product that requires a partial payment via the Deposits & Partial Payments plugin. However, despite this setup, the “Buy with Google Pay” button / express checkout option is still active, allowing users to pay in full and bypass the partial payment requirement.
I’ve already contacted the Deposits and Partial Payments support team and was advised that the best approach is to disable express checkout solely for this particular product. However, I am struggling to do so.
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. I’m also not sure if I will need to disable it when the product is in the cart, but I assume so?
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 ‘Disable express checkout on specific product IDs’ is closed to new replies.