Support » Plugin: WooCommerce Cancel Abandoned Order » This Plugins Setting vs Woocommerce’s Products >> Inventory Setting

  • Resolved adityokusumo

    (@adityokusumo)


    Hi, the plugin works like a charm until I play around woocommerce settings >> Product >> Inventory. There’s a setting called “Hold stock (minutes)”, Hold stock (for unpaid orders) for x minutes. When this limit is reached, the pending order will be cancelled. Leave blank to disable.

    When I read those setting I thought I need to sync the number with my setting on your plugin (I set it up for 6 hours). But when I changed it, it ruins everything. Now I already change the woocommerce setting back to 60 minutes (this is what I remember as its default value) but it still not working.

    Is there any conflict between this plugin and the woocommerce’s “Hold stock (minutes)” setting?

    Plugin Setting: https://snipboard.io/2kjBZ5.jpg
    Woocommerce Setting: https://snipboard.io/ylZjdP.jpg

    Another thing, is there any way to cancel the order like exactly 7 hours after order creation time? For example on this screenshot:
    https://snipboard.io/FDtk4G.jpg

    The order was created June 29 2020, 8:41pm. So I thought if I set it to cancel after the plugin will cancel this order on June 30, 2020, 03:41am. But the logs show that it was cancelled at 04:00am

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author RVOLA

    (@rvola)

    Hello @adityokusumo

    Thanks for your feedback.
    There is no conflict with the Woo settings.
    I do think that Woo can also cancel orders before WOOCAO. However the settings that you even show and the original one.

    Unfortunately for the cancellation at 7am just is not possible because the plugin works on a fixed time slot (each hour).

    Everything should work fine on the next orders

    Thread Starter adityokusumo

    (@adityokusumo)

    Hi, thanks for your answer. I’m currently set the woocommerce setting to 60minutes and will wait for 6 hours to see the result. Hopefully everything will be back to normal.

    I really don’t understand the function of woocommerce setting, since I installed your plugin, the woocommerce setting was always set at its default (60 minutes) but your plugin was able to cancel the order in the interval that I set up.. So, what’s the function of woo-commerce 60 minutes setting? When I google it, a lot of people got frustrated with woocommerce’s 60 minutes setting that their order got automatically cancelled after 60 minutes and they were being advised to disable it https://hitusupdesigns.com/blog/woocommerce-unpaid-order-cancelled-time-limit-reached-fix/

    meanwhile, on GitHub I come across a totally different explanation of how that setting works:https://github.com/woocommerce/woocommerce/issues/24581

    What I want to clarify with you:
    1. If I set the woocommerce’s setting to blank (disable it), will your plugin still able to cancel the order?
    2. Do you know if I’m disabling that setting, will my stock get reduced every time someone does check out and then automatically returning the stock if the payment is not completed?

    Plugin Author RVOLA

    (@rvola)

    indeed the cancellation mainly concerns orders awaiting payment.
    My plugin manages in priority (at the base) the “on-hold” orders, that is to say that the manager of the shop is waiting for a “manual” payment (check, transfer, etc.).

    1. Yes completely!
    2. Normally yes, I use a native WooCommerce function which is supposed to cancel and re-credit the stock if it was active:
    https://github.com/woocommerce/woocommerce/commit/70c9cff608761fcd48b57f709059e00b1ffeee38#diff-27a48ce67fa604181c90b4bb464164ac

    Thread Starter adityokusumo

    (@adityokusumo)

    Hi, unfortunately after set the woocommerce’s setting to 60 minutes and WOOCAO setting to 6 hours for some reason the order not getting cancelled.

    https://snipboard.io/X1VFNs.jpg
    1. Order created July 3rd, 11:36am.
    2. The order supposed to be cancelled by the plugin at 17:00 (or 18:00), but it didn’t happen.
    3. I finally cancel the order manually at 22:10

    I’m frustrated as I don’t know what went wrong and how to debug it.

    Now I’m disabling Woocommerce’s setting (put blank, instead of default 60 minutes) and WOOCAO at 5 hours. I just made fake order and will monitor the result. Fortunately, regarding my question number 2 on previous post. The stock is still secured.
    https://snipboard.io/jhiX7R.jpg

    Now I hope in the next 5 hours the order will get cancelled automatically by WOOCAO just like before…

    Thread Starter adityokusumo

    (@adityokusumo)

    I forgot to mention, that my website is currently under maintenance mode. Do you think it might cause this error?

    URL: http://www.mooeishop.id

    Plugin Author RVOLA

    (@rvola)

    be aware that the system uses WordPress cron.
    When the site is under maintenance the cron can be disturbed.

    Try to install WP-Crontrol and manually launch the woocao task

    Thread Starter adityokusumo

    (@adityokusumo)

    I see! I think this was the problem, once I lifted the maintenance status everything works fine! Maybe it’s beneficial to put the information about this cron things in your plugin FAQ/description.

    Now I’m also aware of how cron works, it’s only triggered during web visit. And for low traffic website like mine that could be a problem. Do you know if a visit from a uptimerobot will trigger the cron task?

    Plugin Author RVOLA

    (@rvola)

    this is a common problem in WordPress and cron.
    No visit = no cron.

    The ideal is to program a received task from the server which calls the wp-cron.php file from time to time.

    Attention, in maintenance mode the code on page 503 cancels cron stains.

    Good luck for the future

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘This Plugins Setting vs Woocommerce’s Products >> Inventory Setting’ is closed to new replies.