I add birthlist functionnality to my woocommerce store. I would like to authorize the order of an out-of-stock product only if the product is purchased on the birthlist.
On my function to add a product to the shopping cart from the birthlist, I skip the stock availability check. The product is now added to the cart. I also add a meta to the item in the cart with the birthlist ID.
But I got an error on cart and checkout about stock.
How to deactivate the stock check of the shopping cart programmatically.
Actually woocommerce make this check on includes/class-wc-cart.php in check_cart_item_stock method