public function hookOrderDetail($params) { global $order, $smarty; require_once dirname(__FILE__) . "/OrderShipment.php"; $smarty->assign("order", $order); $smarty->assign("shipments", OrderShipment::get_from_order($order->id)); return $this->display(__FILE__, "shipmenttracking.tpl"); }