$order=reset($elementobject->linkedObjects['commande']);// Get first order
// We concat this record info into fields xxx_value. title is overwrote.
if(!empty($object->linkedObjects['commande']))// There is already a link to order so we show only info of shipment
if(!empty($object->linkedObjects['commande'])||$object->element=='commande')// There is already a link to order or object is the order, so we show only info of shipment