• Resolved umbertone

    (@spolyakov)


    Hi guys! Thanks for the great plugin!

    I need to trigger a custom function when tracking info is added to an order (that’s done by 3rd party using REST API). Is there any specific plugin hook I can use or should I stick to WP’s built-in ‘updated_post_meta’?

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Zorem

    (@zorem)

    Which Third party do you use? you can use the Shipment Tracking API endpoint to update the tracking in orders and mark them as Shipped (Completed)

    Thread Starter umbertone

    (@spolyakov)

    Sorry, maybe my message wasn’t clear. My fulfillment warehouse is already using REST API to upload tracking #s into orders and it works nicely. What I need to do is execute a custom function when that happens. So I need a hook, they don’t mark order as Shipped, so I can’t use ‘woocommerce_order_status_changed’. The question is whether your plugin has any custom hooks I can use.

    Plugin Author Zorem

    (@zorem)

    Ok, but since it will require custom development, can you provide more details on what this function is doing?

    Thread Starter umbertone

    (@spolyakov)

    I’ll create the function myself, that’s no problem. I’m just trying to understand if there’s a hook in your plugin that’s fired after the tracking is added to the order. If not, I’ll just use ‘updated_post_meta’ with some conditional checks.

    Plugin Author Zorem

    (@zorem)

    Ok, I am not worried, I was just trying to help… Good Luck

    Thread Starter umbertone

    (@spolyakov)

    So, there’s no plugin-specific hook that I can use, right? 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Tracking code added hook’ is closed to new replies.