• First of all I need to say that support was helpful and they have investigated my inquiry, so nothing to say. Great people.

    But, the problem is that this plugin disables some functionality as reserved stock (hold stock on payment pending orders). This option exists under:
    WooCommerce > Settings > Products > Inventory > Hold stock (minutes)

    And what this does is that when an order is placed and the payment is pending, it ‘holds’ those units until the time you setup expires. This also writes on a database table made for this purpose wc_reserved_stock.

    Let’s now suppose an example, we have Client A and Client B and a product with only two units in stock and the value in Hold Stock for 60 minutes.

    Client A buys those two units and payment is not completed, that order is created in WooCommerce with status “Pending payment” and the units are reserved for 60 minutes. This also writes in the database table wc_reserved_stock. In the store the stock still shows as 2 available but it Client B add some units to the cart, the cart shows a warning message:

    “Sorry, we do not have enough “product_name” in stock to fulfill your order (0 available). We apologize for any inconvenience caused.”

    WooCommerce in the background is checking the DB table wc_reserved_stock and it sees that there is some product stock under reservation.

    Then if you try to go to the checkout you will se other warning message:

    “There are some issues with the items in your cart. Please go back to the cart page and resolve these issues before checking out.”

    This is the default WooCommerce functionality and it is OK because it does not allow to sell more units than you have in stock until those pending payment orders are payed or expiration time is reached.

    When using your plugin, and supposing the same scenario as before, when Client A buys the two units, nothing is created on the database table as a reservation so when Client B tries to buy, no warning message is shown and the he can place an order. That’s WRONG.

    The main issue is that when both clients confirmed payment before those 60 minutes, the stock will be -2. This is not a WooCommerce problem, is that WooCommerce is being modified and that modification disables some checks like the one mentioned before.

  • The topic ‘Disables some default WooCommerce functionalities’ is closed to new replies.