• Resolved Guido Goluke

    (@majorlabel)


    One note to make here! This theme is a block theme, where I manually had to insert the [woocommerce_checkout] and [woocommerce_cart] shortcodes, since the new block-pages were not compatible with my payment provider.

    When I place an item into my cart, and it is the last one, so after checkout the stock would be zero, I can go to my cart page without problems. Then, I go to the checkout page, but in stead of paying, I go back to the cart page: I see a warning about the item being out of stock.

    Now I know Woocommerce does some ‘stock freeze’ when someone places the item into the cart, and I think that is a good idea, but does it not check if I am the one holding the last one of that item in my cart, when entering the cart page?

    ## Steps to reproduce

    Place an item into your cart, as many as you can for that item. Then go to the cart, proceed to checkout, but then go back to the cart without checking out.

    • This topic was modified 1 year, 6 months ago by Guido Goluke.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Saif

    (@babylon1999)

    Hello @majorlabel,

    Thank you for reaching out!

    Now I know Woocommerce does some ‘stock freeze’ when someone places the item into the cart, and I think that is a good idea, but does it not check if I am the one holding the last one of that item in my cart, when entering the cart page?

    From what I’ve checked, there is no stock freeze when a customer adds an item to the cart. It’s basically first-come, first-served. However, you can achieve this with extensions like “Reserve Stock for WooCommerce.”

    Could you please attach some screenshots that illustrate the issue so we can try replicating it from our end? :?)

    If you don’t already have a screenshot service installed, here are a few free options: 

    Look forward to hearing back from you.

    Thread Starter Guido Goluke

    (@majorlabel)

    @babylon1999 Well my question did not state that I am looking for a way to freeze the stock. However, when I look at some random order, I keep seeing notes that say “Stock freeze of 10 minutes applied”, or sometimes 60 minutes. Not sure if that is the exact text, since it is my translation from the Dutch messages we see, but that is the gist of it.

    If you look at my post, you will see I attached the website and the steps to reproduce. However, at the time we had this problem, both the block-version of the cart and checkout page were active on the same page as the shortcode-versions were. I just hid the block-version with a display: none, but I think it still did some stuff in the background. Now that I completely removed the block-versions (since our payment operator is not supported yet), it works like it used to. It seems this problem solved itself.

    Saif

    (@babylon1999)

    However, when I look at some random order, I keep seeing notes that say “Stock freeze of 10 minutes applied”, or sometimes 60 minutes. Not sure if that is the exact text, since it is my translation from the Dutch messages we see, but that is the gist of it.

    These notes are usually added for orders that were created without payment due to issues with the customer’s card, bank, or other factors. The stock is temporarily held to give the customer an opportunity to pay for the order again through their “My Account” page under “Orders.”

    You can adjust the stock freeze limit by navigating to WooCommerce > Settings > Products > Inventory.

    If you look at my post, you will see I attached the website and the steps to reproduce.

    I noticed that, but from what I understand, to observe this behaviour, you would need to proceed to checkout and then return to the cart, which, as you can imagine, is not something we can do on your site.

    Nevertheless, I’m glad to hear that the problem has been resolved. I’ll go ahead and mark this thread as solved. If you have any more questions or encounter further issues in the future, please don’t hesitate to create a new thread.

    Cheers!

    Thread Starter Guido Goluke

    (@majorlabel)

    I noticed that, but from what I understand, to observe this behaviour, you would need to proceed to checkout and then return to the cart, which, as you can imagine, is not something we can do on your site.

    Not quite sure why that would be a problem, you only needed to visit the checkout page, not perform any checkout actions, least of all do any payment.

    Anyway, I see these notices a lot. The shop offers payment on delivery, could that be a factor here? Since payment is ‘pending’ as long as the goods aren’t delivered?

    Saif

    (@babylon1999)

    Not quite sure why that would be a problem, you only needed to visit the checkout page, not perform any checkout actions, least of all do any payment.

    My apologies, I thought you meant this happens after you place an order.

    Anyway, I see these notices a lot. The shop offers payment on delivery, could that be a factor here? Since payment is ‘pending’ as long as the goods aren’t delivered?

    Yes, but this only applies if an order is made. As stated before, if an order is not paid for (which I assume is the situation if payment is due upon delivery), then the stock will only be reserved for 30 minutes before the order is cancelled.

    However, this shouldn’t occur with the default Cash on Delivery payment method in WooCommerce. In this case, the order is marked as ‘processing’ rather than ‘pending payment’, which is where this behaviour happens.



    For more context, kindly check: https://woocommerce.com/document/configuring-woocommerce-settings/#products-inventory-options

    Are you using a third party plugin or a custom workflow for payment on delivery orders?

    Look forward to hearing back from you.

    Thread Starter Guido Goluke

    (@majorlabel)

    Hi @babylon1999,

    We use the stock ‘Cash on Delivery’ method for the payments of orders that are collected by customers, rather than sent out. I see in a recent order that was placed with ‘Cash on delivery’, two notes in the sidebar: the first one (bottom one) tells me I have a stock freeze of 60 minutes, and at the exact same time (to the minute, seconds are not shown) another note that says the stock has decreased. This was due to the order being placed. The order is not set to ‘Pending payment’, but indeed to ‘Processing’ I believe.

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @majorlabel

    The notes you’re seeing in the sidebar are standard messages that WooCommerce generates. The “stock freeze” message means that WooCommerce has reserved the items from your inventory for 60 minutes to ensure they’re available for the customer. The “stock has decreased” message means that WooCommerce has deducted the items from your inventory because an order has been placed.

    The order status of “Processing” rather than “Pending payment” is because the Cash on Delivery payment method doesn’t require an immediate payment. Instead, the order is marked as “Processing” until the payment is collected when the customer picks up the order.

    Further information can be found here: https://woocommerce.com/document/cash-on-delivery/

    I hope this clears up any confusion. If you have any further questions, please don’t hesitate to ask.

    I reported a similar issue on my client’s site. Inventory is managed, products are in stock with at least one available when added to the cart. Once you go to checkout you get the message that there’s an issue with an item in your cart and when you go back to the cart you see Sorry, we do not have enough “The Product” in stock to fulfill your order (0 available). We apologize for any inconvenience caused.

    The theme used on this site is Storefront and the issue is new after an update.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Warning about out of stock product when I am the one with the last one’ is closed to new replies.