Disable payment method based on vendor product
-
Hey
I’d like to disable all the payment method for certain vendor products so that customer can place an order without selecting any payment method (For such vendors products only)
The reason why I would like to add is that there are certain vendors stock availability is subject to change, therefore we don’t want the customer to place an order with payment and revert back with a refund.
I found this filter where it disables all the payment methods regardless of the vendor nor products and there are a few plugins too where you can disable payment methods on a single product basis. But this is not helpful since we have 3000+ products.
add_filter( 'woocommerce_cart_needs_payment', '__return_false' );
Is it possible to filter out all the payment methods based on author/vendor id’s?
Please help ????
- The topic ‘Disable payment method based on vendor product’ is closed to new replies.