Hi there,
Can you send us a screenshot of your Inventory settings? /wp-admin/admin.php?page=wc-settings&tab=products§ion=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
@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 6 years ago by
jdwf0658.
-
This reply was modified 6 years ago by
jdwf0658. Reason: Added Source