Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 454
djnetherton Avatar asked Jul 08 '15 20:07

djnetherton


1 Answers

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.

like image 173
Domain Avatar answered Oct 05 '22 14:10

Domain