Disabling stock management and order completion time issue
-
Hi, I verified that there are serious limits on managing order of hundreds or thousands of items. As written in another topic, it may take from several minutes to half an hour.
Now:
situation A)
some of my products in some period, don’t need stock status management. I tested the order disabling the manage stock status from settings > products > inventory and an order that previously was completed in 2 minutes, took only 8 seconds.
If I enable the global manage stock but disable it on the single products in the order, the trick doesn’t work (it is back to 2 minutes).As I could check if an order needs or not the stock management (it depends on product categories and I can’t have mixed categories in the cart, so I just need to check a single product category in the cart and decide if enable the management or not).
Is there a way to enable/disable programmatically the GLOBAL stock status management (not checking product by product)?
I could add it as an action on submit order.Situation B)
for the categories that DO need the stock management, it seems that checking if the product is virtual is very time consuming (https://github.com/woocommerce/woocommerce/issues/16326#issuecomment-320486867).
As I have only physical products, is it possible to totally disable the “needs_processing()” check? I neither need a payment management as order are paid offline. Changing the function is not enough… it doesn’t have to loop.
Thanks
Nadia
- The topic ‘Disabling stock management and order completion time issue’ is closed to new replies.