Make stock available different than real stock amount
-
Hi,
I’m building a Woocommerce website, and stock amounts are updated with an API so I can’t fake them.
I’d like to make the online stock amount different than my real stock, for example :
I got 10 items in my real stock.
I’d like to save 3 items for my physical shop, then I’d like to have 7 items available online.I already added a product meta where I set the number from which I want the product to be unavailable.
In my example, if real stock goes down to 3, my product is unpurchasable and it works well.
But if I got 10 items, I can actually add these 10 items to the cart.
Is there any simple solution to override the product stock amount for every features (PHP function, AJAX add to cart, notices) ?
I don’t find any solution online and I’m scared I have to use a lot of hooks and filter to verify my “fake” stock on every step…
Thank you for your help.
Anthony
- The topic ‘Make stock available different than real stock amount’ is closed to new replies.