• Resolved reign1

    (@reign1)


    Hi,

    How to get status of an order?

    $status = $this->get_prop( ‘status’, $context ); return $status;

    Above line doesn’t seem to work, what am I missing?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey @reign1 !

    Have you tried using the get_status() method? You can read more about it in our developers documentation.

    It would look something like this:

    $status = $order->get_status(); return $status;

    Let me know if that works for you!

    Thread Starter reign1

    (@reign1)

    Thanks @arcangelini ,

    Worked fine. Btw, how can I get all the info on the product within the order? Lets say I have product id, how do I get all the attributes related to that product?

    BR,
    Gytis

    Hey @reign1 !

    Thanks for your patience. I am glad that helped you, this is something that is a little more advanced and we typically are not able to help with coding like this. I would suggest searching through our developer docs that I shared above for the hooks and functions you may need.

    If you do not have much success with that, I would suggest taking a look at this article I found. It may point you in the right direction : )

    I hope this helps

    Hey @reign1

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Order status’ is closed to new replies.