know when an order goes to completed status

WCMp Core

Resolved
Viewing 5 reply threads
  • Author
    Posts
    • #131779
      Jafet Romero
      Participant

      Greetings, nice day.

      How do I capture the event of “making a purchase complete?”
      I am performing a function that must be executed at the time of any order goes to the completed state, how can I know when this happens?

    • #131781
      Jafet Romero
      Participant
      This reply has been marked as private.
    • #131808
      This reply has been marked as private.
    • #131952
      Jafet Romero
      Participant
      This reply has been marked as private.
    • #131997

      Hi let me help you out with the flow :

      – When an order is created on the woocommerce end, we create the corresponding sub-order.
      – Now, we check the initial order status of the order from woocommerce’s main order and set same order status for suborders too
      – After that, each vendor/admin needs to change order status for each sub-order
      – Therefore, apart from initial order status, if you want to change status of an order, then you’ll have to do it manually from both admin end and vendor dashboard.

    • #132206
      Jafet Romero
      Participant

      greetings God bless you.

      Now you can close this thread, I have obtained the answer by doing a search in the database in the wordpress posts table in the post_type field an additional descriptor “Shop_order” is added to know the status the field is post_status and the identifier is “WC – **** “where the *** are the status.

      Additionally, there is a post-goal table that has the specific descriptors as needed.

      I leave this here in case someone has a similar question

Viewing 5 reply threads

The topic ‘know when an order goes to completed status’ is closed to new replies.