• Resolved jesusginard

    (@jesusginard)


    Hi there,

    I have a webhook set up on order updated.
    It triggers a script to send the user a serial number.

    Sometimes, a user gets back to me saying that he received a confirmation email from Woocommerce but not the serial number email. I have to manually go and re-save the order so the webhook is actually sent.
    This happens 20% of the time, most of the time it works.

    I’ve seen that the scheduled action for the “completed” webhook is not even created.

    What is going on?

    Thanks!
    Jesús

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • I have a webhook set up on order updated.
    It triggers a script to send the user a serial number

    You could make the script write to a log file every time it gets triggered

    This way you can isolate the error.

    Thread Starter jesusginard

    (@jesusginard)

    I’ve done that and the only received webhook is the one with the status “pending”, but not “completed”. The problem is that the webhook is not even created since it’s not on the action schedule.

    Webhooks can be triggered during Order Created, Product Deleted, or Customer Updated isn’t it?

    Thread Starter jesusginard

    (@jesusginard)

    Also order updated, that’s how I have it set up.
    It’s working 80% of the time, I don’t know why it fails sometimes.

    Thread Starter jesusginard

    (@jesusginard)

    I’ve fixed the issue by installing the plugin “Autocomplete Orders for Woocommerce”.
    The problem wasn’t that the webhook wasn’t sent, but that the order status was set to “pending” instead of “completed”.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Order updated webhook not sent (sometimes)’ is closed to new replies.