diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php index e38ebd977e1..d434e7df6c1 100644 --- a/htdocs/expedition/card.php +++ b/htdocs/expedition/card.php @@ -1924,6 +1924,8 @@ else if ($id || $ref) // Tableau des substitutions $formmail->setSubstitFromObject($object); $formmail->substit['__SHIPPINGREF__']=$object->ref; + $formmail->substit['__SHIPPINGTRACKNUM__']=$object->tracking_number; + $formmail->substit['__SHIPPINGTRACKNUMURL__']=$object->tracking_url; //Find the good contact adress if ($typeobject == 'commande' && $object->$typeobject->id && ! empty($conf->commande->enabled)) {