Avoid checkout for mixed backorder and normal items in Woocommerce
问题 Is it possible to disable checkout if there is backorder item mixed with in stock items. The code so far is displaying message if there is mixed items in the cart, but they still can checkout the order. We are using Preorder plugin and on the settings, the preorder and onhand cant be mixed in cart. Below are settings of plugin. Prevent mixing products If you enable this option, the cart cannot contain Pre-Order products and regular products at the same time.(enabled) But it only work if there