• Resolved maipiusenza

    (@maipiusenza)


    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    I understand you are managing hundreds or thousands of products, depending on the occasion. I understand you are interested to speed the site up when managing orders.

    Please note that the setting Enable stock management is made to permit WooCommerce to automatically subtract stock, to change stock status if you run out. On the other hand, to manually manage the stock, please leave this setting unchecked.

    Is there a way to enable/disable programmatically the GLOBAL stock status management (not checking product by product)?

    That sounds like a customization which is not covered in our forums, I think the goal here is to speed the site up, allowing you to process your tasks faster. If the problem is the site speed, I recommend you to check the following:

    https://woocommerce.com/posts/woocommerce-site-slow-fixes/

    I hope this helps.

    Thread Starter maipiusenza

    (@maipiusenza)

    Hi, we had several messages on the forum for speed issues, and none of the “how to speed up your site” links you gave are related to the problem I described.
    The problem is that it seems that woocommerce is not able to manage an order of 500-1.000 items without slowing down in a very serious way.
    So, starting from this, I’m trying to do as muck as possible to solve the problem, as it is a BIG problem to have a person that have to wait 10 minutes for an order to be completed…

    As I’ve seen that disabling the stock management the problem is solved, AT LEAST I would like to use this information I’m trying to reproduce it without disabling from the admin panel, as it is impossible!
    I have a category of product that MUST have the stock management and another that doesn’t need it (and an order can never have products from both categories).

    So, for sure, in the checkout process there should be some “if stock management is enabled... loop the products to change quantities”…

    I just would like to understand what is the variable/function that does this check so to change by a snippet when needed. so, at least, half of the orders on the shop will be very fast.

    So, again, can you help me to find this solution? I’m not asking a customization, only the part of code to work on…

    Thanks

    Hi,

    I understand your point, thanks for sharing your opinion.

    Please note, changing the setting if stock management is enabled according to the business needs there is a possibility to create other issues with inventory. There are pros and cons that you will need to consider before making any change, more info is below:

    I recommend as well to check if the feature under Advanced settings called Enable High-Performance Order Storage might work for your model, to get more information please check:
    https://woocommerce.com/document/high-performance-order-storage/

    Hope this helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disabling stock management and order completion time issue’ is closed to new replies.