In Woocommerce I would like to hide Cash on Delivery payment method if any cart item is backordered, meaning if the customer add any items to cart which are allowed for backorders but have not enough stock regarding the added quantity.
My main concern is to not allow them to pay if we don't have this product at store, and if we can backorder that, we just put a desired quantity and ask for them to pay.
Any help is appreciated.