Browse community

an unpaid bank transfer should not be able to hide our last case

anna_41Posted

cleaning products, woocommerce, coastal oregon, about 4.2m and 9,500 orders a year. 60 skus, several of which we genuinely run down to the last case because they're slow and bulky.

for months i've watched items show as out of stock when nobody had paid for them. i finally found the setting: woocommerce, settings, products, inventory, hold stock (minutes). the docs say it reserves units for an unpaid order for that many minutes, then cancels the pending order and puts them back. leave it blank and it's off.

the part that caught me out: the docs say it only applies to orders in pending payment. anything sitting in on hold isn't covered by the timer. those units stay out of inventory until a human changes the status.

so now i've got a 45 minute hold instead of blank, i've checked which status each of our gateways actually creates, and i've got a weekly filter for pending and on hold. where a gateway sends the buyer off-site to pay, the hold needs to outlast that gateway's session, otherwise a slow payment lands against an order that's already been cancelled.

what i still don't have is a sane policy for on hold orders that never pay. someone eyeballing them, or something scheduled?

17 replies

  1. becca_warehouse

    pending payment doesn't reduce stock in the normal sense at all. at checkout woo writes a short-lived row to wc_reserved_stock for the configured minutes and it expires on its own. actual stock reduction happens when the order reaches processing, completed or on hold, i.e. when payment_complete fires.

    on hold isn't sitting on reserved units. it's already taken them. that's exactly why a bank transfer order that never settles leaves a product looking gone. cancelling it returns the stock. cleaning up old pending orders is tidy, but it does nothing to the numbers.

    for on hold i'd run a small scheduled job that cancels held orders past n days, scoped to the gateways that create them, and emails the customer a day before. manual review stops scaling at about five a week.

  2. anna_41OP

    @becca_warehouse

    fair correction, i'd blurred two mechanisms. the timer only frees the temporary reservation; on hold has already eaten the units. so cleaning pending orders is cosmetic and the stale held ones are the actual problem.

    the scheduled job is the better route for bank transfer and e-cheque. one addition: it needs to skip orders where the buyer has said the transfer is on its way, otherwise it cancels someone who's just slow.

  3. e_iqbal

    when did this get added? i've had orders cancelling themselves for a few weeks and assumed it was a plugin.

  4. anna_41OP

    @e_iqbal

    no idea on version, i only found the setting and the docs. but if they're cancelling themselves, that timer is the likely cause.

  5. katie_inventory

    if you also list on a marketplace and woo is your master stock, this gets worse. the reduced quantity syncs out, so one unpaid transfer doesn't just hide the item on your site, it hides the last few units everywhere.

    same in reverse when you cancel. woo comes back, but check the connector reacts to the move to cancelled and not only to new orders. some only watch sales come in, so the restored stock never reaches the other channels.

  6. anna_41OP

    @katie_inventory

    multichannel is the bit i'd have missed. i'll test the cancel path on purpose: make a transfer order, cancel it, watch the marketplace listing.

  7. zoe_warehouse

    anyone writing a cleanup snippet, be careful. selecting every aged on hold order ignores the payment method. on hold can also mean an authorised payment waiting to be captured, so age alone shouldn't decide a cancellation. scope it to the manual gateways and look at the exceptions first.

    and process in limited batches instead of pulling the whole order history into one daily cron, or you trade a stock problem for a timeout.

  8. emma_55

    relevant if you run several gateways. walk a full order through each one, including failed payments, abandoned checkouts and delayed confirmations. they don't all land in the same status, so relying on the hold number alone can keep units reserved much longer than you think.

    and before cancelling aged held orders, make sure no payment confirmation or delayed webhook is still in flight. worth doing before a busy stretch.

  9. ines_26

    the pending vs on hold split is what bites multi-channel sellers. on hold can be authorised but not captured, so a blanket age sweep kills valid orders. status plus gateway plus age, never age alone.

    if woo is the source of truth, also check what your marketplace connector does with a held order. some push the lower quantity immediately, so an unpaid order shows the item out of stock elsewhere before the timer has even run. that's a sync bug wearing a stock costume.

    what i'd run: 30 minutes for pending payment, a separate report for on hold beyond 24 hours, and a written rule for which statuses are allowed to hold inventory.

  10. anna_41OP

    @ines_26

    good catch on authorised-but-not-captured. an age-only sweep would kill orders that are completely fine. and you're the second person warning that the connector can push the quantity instantly, so i'll test one pending order on the channel side.

  11. noor_ops

    does the timer do anything if checkout dies at the gateway and no order is ever created? or is this only for orders that exist and sit unpaid?

  12. anna_41OP

    @noor_ops

    no order, nothing to hold. all of mine were orders that existed and simply never got paid.

  13. dave_46

    we have the same problem from the other direction: wholesale customers on net 30 get entered as on-hold orders so the rep can invoice later, and every one of those parks stock for a week. nobody thinks of them as "unpaid" because they're not retail orders.

    if you sell wholesale at all, check whether your team is doing that. it's a completely different conversation from the bank-transfer problem.

  14. becca_warehouse

    @dave_46

    this is a good point and it's usually invisible because the order looks legitimate. if wholesale orders are being parked on hold, they need their own status or their own fulfilment flow, not a manual payment gateway.

  15. yusuf_ops

    small thing that helped us: put the hold window in the payment method description. "bank transfer — we keep your order 48 hours" cut down the number of people who assumed it was reserved until they got round to paying.

  16. f_ellis

    slightly off topic but how are you only at 60 skus on 4.2m? we're at 300 and doing less. are you just very concentrated?

  17. anna_41OP

    @f_ellis

    very concentrated. eight lines make about 70% of revenue and most of the rest are refills and accessories. it makes stock simple and forecasting boring, which is why this unpaid-order thing annoyed me so much.

Have something useful to add?

Create a username and password in seconds, then reply.