Woocommerce order update webhook not firing
Asked Answered
M

2

8

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

Monanthous answered 8/7, 2015 at 20:51 Comment(0)
E
1

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

enter image description here

Now ordered a product. And did the following

Changed the status from the following buttons.

enter image description here

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.

enter image description here

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

enter image description here

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.)

enter image description here

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

enter image description here

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.

Emolument answered 9/7, 2015 at 6:15 Comment(3)
And woocommerce_order_status_changed have no billing info in request body =/ Sample: {"action":"woocommerce_order_status_changed","arg":27121,"order":{"billing_address":{"vat_number":false}}}Seneschal
@Seneschal my api webhook doesn't have a log, how to enable it?Havener
I have the same error after 5 years. Woocommerce webhooks are really coy thingsDiminish
L
0

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&
Landsturm answered 12/1, 2023 at 13:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.