Get order title value from $order variable I have to get order status and order title from $order variable. I can get order status by $order-&gt;order_status. But I can't able to get order title. So how to get order title value from $order variable programmatically.

I am using the below hook :

  function hook_uc_order($op, $order, $arg2) {
     if ($op == 'update') {
       if (($order-&gt;order_status == 'payment_received') &amp;&amp; ($order-&gt;title == 'My Product')) {
         // Do something with the $order object.
       }
    }
  }


Here $order-&gt;order_status is working individually but $order-&gt;title is not working. How to get Order Title?

Looking forward for this answer.
You can get the order title from this method. 

   uc_order_page_title($order)


check out all the methods you need for ubecart. ubecart drupal 7 API