简体   繁体   中英

Woocommerce order update webhook not firing

I am using woo commerce and I have been looking at the webhooks.

All of them have logs (aka they have been firing)

However, the order.updated webhook is the only one which does not have any logs.

Can anybody help me? I have contacted woo themselves and have not had a response + checked many many threads but there does not seem to be a clue anywhere.

Thanks.

Dan

Have tried your approach created a Webhook with the order.updated as action.

在此输入图像描述

Now ordered a product. And did the following

Changed the status from the following buttons.

在此输入图像描述

But the webhook didn't fired at all.

Then went to the respective order and added some custom field value and clicked on save order.

在此输入图像描述

Then checked the Webhook log. Yes for this above action a webhook triggered.

在此输入图像描述

Now i tried with changing the status of the order from the order edit page itself.

Here changed from processing to on-hold status and did save order. (Status processing was set previous while trying to update status from the order list dashboard itself.)

在此输入图像描述

Again checked the webhook log for the same. Yes and now the webhook had one more trigger logged in it.

在此输入图像描述

Finally got to a conclusion that this order.updated action is triggered when any changes are made and saved view the editing the single order page.

A Collaborator has suggested to use action.woocommerce_order_status_changed instead.

In my case the cron-jobs were deactivated, due to an Error of our hosting provider.

The cron jobs can be viewed using this URL. Over the GUI i could not find the cron Job page.

https://{yourDomain}/wp-admin/tools.php?page=action-scheduler&status=past-due&order=asc&

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM