• hi

    i have added in settings to check every 480 minutes for pending orders and after that cancel them but doesnt seems to work.

    By using cron-view plugin i see that this actions is as ” One-off event”

    with wp-crontrol plugin shows it as “Non-repeating”

    I dont know exactly when this stopped working (if any plugin updated and is interfering ) but it was working before.

    is there any way to fix tis problem by adding a code into files?

    regards

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

    Can you send us a screenshot of your Inventory settings? /wp-admin/admin.php?page=wc-settings&tab=products&section=inventory

    By using cron-view plugin i see that this actions is as ” One-off event”

    with wp-crontrol plugin shows it as “Non-repeating”

    WooCommerce uses Action Scheduler, so these will display as non-repeating, but you can see them in: WooCommerce > Status > Scheduled Actions

    The whole Action Scheduler relies on WP CRON, so you’ll still want to ensure that’s working correctly.
    Can you send me a screenshot of the WP Crontrol page as well?

    Thank you,
    Joey

    Thread Starter koullis

    (@koullis)

    @jricketts4

    hi

    in WooCommerce > Status > Scheduled Actions

    there is only woocommerce_update_marketplace_suggestions 4 times and 1 pending

    here is the pic of inventory settings

    https://i.postimg.cc/KzydsJcx/Untitled.jpg

    Under wp-crontrol plugin in cron events

    https://i.postimg.cc/RFBZQ7jn/wpcron.jpg

    same plugin but under WP-Cron Schedules there isnt anything about cancel orders

    Under Advanced Cron Manager plugin

    https://i.postimg.cc/W4HbxRFg/cronmanager.jpg

    I too have noticed that the cancel unpaid orders no longer runs. I have stock management enabled as well as a timer of 60 minutes. Checking my action scheduler I don’t even see it getting schedule anymore. I have WP Cron set to run every 30 minutes which runs the scheduler just fine.
    Can possibly just create our own action to handle this? Here is my work-around I’m thinking about doing.

    
    add_action('jd_cancel_unpaid_orders', 'jd_cancel_unpaid_orders_handler');
    function jd_cancel_unpaid_orders_handler() {
        wc_cancel_unpaid_orders();
    }
    

    Then using the WP CLI
    #change user to your path, sets up to check hourly.

    
    cd /home/user/public_html; wp cron event schedule jd_cancel_unpaid_orders now hourly
    

    NOTE: it checks the duration limit within the function wc_cancel_unpaid_orders() so having it run hourly should be fine.
    https://woocommerce.wp-a2z.org/oik_api/wc_cancel_unpaid_orders/

    • This reply was modified 4 years, 8 months ago by jdwf0658.
    • This reply was modified 4 years, 8 months ago by jdwf0658. Reason: Added Source
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘cancel unpaid orders’ is closed to new replies.