• Resolved Nikita

    (@delfniki)


    Hi guy’s,

    I am struggling with some weird issue, maybe you have an idea how to resolve it / Automate a workaround.

    When a new order is placed, woocommerce triggers order.updated hooks.
    Order that has not yet been paid has status pending: screenshot pending order

    After the order has been paid, an API call is sent with status processing

    screenshot processing order

    The API on the receiver side only responds to messages with status processing.

    Issue:

    Sometimes it happens (+/- 1 time on 30 orders) that the 2nd message (status processing) is not triggered automatically.

    Workaround: Open order manually and click update. This triggers order.updated api with status processing.

    Unfortunately i am not able to catch the scenario when this happens.

    As a solution I thought of some script to “retry” open orders in status processing and then put cron on it to execute every hour? I am not a developer and will not be able to create it myself.. But maybe there are other / better ideas how to resolve it?

    Thank a lot!

    • This topic was modified 4 years, 8 months ago by Nikita.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Try switching back to a default theme like Twenty Twenty and disabling all plugins except for WooCommerce to see if this resolves the issue. Here is a link that better outlines that process:

    https://docs.woocommerce.com/document/woocommerce-self-service-guide/#section-4

    If this fixes the issue, then re-enable each plugin one at a time, then the theme, until you find the one that’s causing the conflict.

    Thread Starter Nikita

    (@delfniki)

    Hahaha thank you..)
    That’s a production environment with thousands of visitors…:D

    I just created one more order.updated hook to the same endpoint, so now they are both firing a message when order is updated. MB this way they will backup each other..

    btw i am using storefront.

    Plugin Support Damianne P (a11n)

    (@drwpcom)

    Hi Nikita. It would be good to test this on a staging site if you’re still having an issue. You can set up a staging site with the help of your host or using WP Staging.

    Plugin Support Damianne P (a11n)

    (@drwpcom)

    I hope the issue is resolved for you. However, if you still need help, please start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Woocommerce order.updated webhook not always triggered’ is closed to new replies.