[Skip to main content](#vessel-content)

#   Nom du client dans titre e-mail de commande

##

- **[oliv](/forum/user/7307-oliv "View oliv's Profile")**
- [![oliv's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-04-23.png)](/forum/user/7307-oliv "View oliv's Profile") Topic Author
- [ Offline](/forum/user/7307-oliv)

Less More

- Posts: 257
- Thank you received: 7
-
-
-
- [](http://jardinpromo.com)
-

13 years 5 months ago -  13 years 4 months ago [\#106882](#106882) by [oliv](/forum/user/7307-oliv "View oliv's Profile")  *[Nom du client dans titre e-mail de commande](/forum/5-support-en-francais-french-support-/83090-nom-du-client-dans-titre-e-mail-de-commande#106882 "Bonjour,  Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.  Le numéro de commande, j'y arrive.  Merci.")* was created by *[oliv](/forum/user/7307-oliv "View oliv's Profile")*

Bonjour,

Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.

Le numéro de commande, j'y arrive.

Merci.

Last edit: 13 years 4 months ago by [oliv](/forum/user/7307-oliv "View oliv's Profile"). Reason: réglé

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 5 months ago -  13 years 5 months ago [\#106887](#106887) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Nom du client dans titre e-mail de commande](/forum/5-support-en-francais-french-support-/83090-nom-du-client-dans-titre-e-mail-de-commande#106887 "Bonjour,  Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.  Le numéro de commande, j'y arrive.  Merci.")*

Bonjour,

Je pense que vous trouverez quelques réponses [ ici ](http://www.hikashop.com/fr/forum/4-how-to/12885-include-a-custom-field-in-the-confirmation-emails.html):

> Custom order fields will be included in the email to the administrator automatically.
> For the email sent to the user, you will have to edit the "order creation notification" email via the menu System-&gt;Emails and add the code below in it if you want the user to also have the information in his email :
> $fieldsClass = hikashop::get('class.field');
> $fields = $fieldsClass-&gt;getFields('frontcomp',$data,'order','');
> foreach($fields as $fieldName =&gt; $oneExtraField) {
> echo "\\r\\n".$fieldsClass-&gt;trans($oneExtraField-&gt;field\_realname).' : '.$fieldsClass-&gt;show($oneExtraField,$data-&gt;$fieldName);
> }

En espérant que cela vous sera utile.

Last edit: 13 years 5 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

The following user(s) said Thank You: [oliv](/forum/user/7307-oliv "View oliv's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oliv](/forum/user/7307-oliv "View oliv's Profile")**
- [![oliv's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-04-23.png)](/forum/user/7307-oliv "View oliv's Profile") Topic Author
- [ Offline](/forum/user/7307-oliv)

Less More

- Posts: 257
- Thank you received: 7
-
-
-
- [](http://jardinpromo.com)
-

13 years 5 months ago [\#107057](#107057) by [oliv](/forum/user/7307-oliv "View oliv's Profile")  Replied by *[oliv](/forum/user/7307-oliv "View oliv's Profile")* on topic *[Nom du client dans titre e-mail de commande](/forum/5-support-en-francais-french-support-/83090-nom-du-client-dans-titre-e-mail-de-commande#107057 "Bonjour,  Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.  Le numéro de commande, j'y arrive.  Merci.")*

Merci Mohamed,

Je n'ai pas trouvé la réponse à ma question.

Je précise que c'est dans le titre, aurais-je dû écrire "le sujet", que je voudrais inclure cette donnée.

Merci.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 5 months ago [\#107085](#107085) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Nom du client dans titre e-mail de commande](/forum/5-support-en-francais-french-support-/83090-nom-du-client-dans-titre-e-mail-de-commande#107085 "Bonjour,  Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.  Le numéro de commande, j'y arrive.  Merci.")*

Bonjour,

Une solution possible est de supprimer le sujet de votre mail.
Ensuite, dans le fichier order.php de administrator/components/com_hikashop/classes trouvez la ligne: Code:

$order-&gt;mail-&gt;subject = JText::sprintf('NEW_ORDER_SUBJECT',$order-&gt;order_number,HIKASHOP_LIVE);

Il vous suffit alors de trouver la traduction dans le fichier de langue pour l'adapter à vos besoins, les %s de la traduction étant remplacées par les variables du sprintf()

The following user(s) said Thank You: [oliv](/forum/user/7307-oliv "View oliv's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oliv](/forum/user/7307-oliv "View oliv's Profile")**
- [![oliv's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-04-23.png)](/forum/user/7307-oliv "View oliv's Profile") Topic Author
- [ Offline](/forum/user/7307-oliv)

Less More

- Posts: 257
- Thank you received: 7
-
-
-
- [](http://jardinpromo.com)
-

13 years 5 months ago [\#107094](#107094) by [oliv](/forum/user/7307-oliv "View oliv's Profile")  Replied by *[oliv](/forum/user/7307-oliv "View oliv's Profile")* on topic *[Nom du client dans titre e-mail de commande](/forum/5-support-en-francais-french-support-/83090-nom-du-client-dans-titre-e-mail-de-commande#107094 "Bonjour,  Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.  Le numéro de commande, j'y arrive.  Merci.")*

J'y suis presque il me manque le terme à rentrer pour remplacer "HIKASHOP_LIVE" par mon champs "address_company".
J'arrive pas à le trouver.
Merci.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 5 months ago [\#107119](#107119) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Nom du client dans titre e-mail de commande](/forum/5-support-en-francais-french-support-/83090-nom-du-client-dans-titre-e-mail-de-commande#107119 "Bonjour,  Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.  Le numéro de commande, j'y arrive.  Merci.")*

C'est là qu'il faut utiliser le code donné plus haut par Mohamed.
Code:

$fieldsClass = hikashop::get('class.field'); $fields = $fieldsClass-&gt;getFields('frontcomp','address','');

Cela vous permet de récupérer tous les champs personnalisés de type adresse. Le foreach vous permettra de les parcourir, trouver celui qui vous intéresse et afficher sa valeur. Par exemple:
Code:

$theField=''; foreach($fields as $fieldName =&gt; $oneExtraField) { if($fieldName=='addresse_title'){ $theField=$oneExtraField-&gt;field_realname; } }

C'est un exemple bien sur, il faut remplacer "address" par la valeur du "table" de votre champ et la condition du if par son namekey.

The following user(s) said Thank You: [oliv](/forum/user/7307-oliv "View oliv's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oliv](/forum/user/7307-oliv "View oliv's Profile")**
- [![oliv's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-04-23.png)](/forum/user/7307-oliv "View oliv's Profile") Topic Author
- [ Offline](/forum/user/7307-oliv)

Less More

- Posts: 257
- Thank you received: 7
-
-
-
- [](http://jardinpromo.com)
-

13 years 5 months ago [\#107124](#107124) by [oliv](/forum/user/7307-oliv "View oliv's Profile")  Replied by *[oliv](/forum/user/7307-oliv "View oliv's Profile")* on topic *[Nom du client dans titre e-mail de commande](/forum/5-support-en-francais-french-support-/83090-nom-du-client-dans-titre-e-mail-de-commande#107124 "Bonjour,  Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.  Le numéro de commande, j'y arrive.  Merci.")*

Merci mais mon niveau débutant en php ne me permet pas de comprendre où il faut coller ces codes.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 5 months ago -  13 years 4 months ago [\#107125](#107125) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Nom du client dans titre e-mail de commande](/forum/5-support-en-francais-french-support-/83090-nom-du-client-dans-titre-e-mail-de-commande#107125 "Bonjour,  Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.  Le numéro de commande, j'y arrive.  Merci.")*

Il suffit de les mettre au dessus de la ligne Code:

$order-&gt;mail-&gt;subject = JText::sprintf('NEW_ORDER_SUBJECT',$order-&gt;order_number,$theField);

Vous remarquerez que j'ai remplacé HIKASHOP_LIVE par le champ personnalisé récupérer précédemment.

Last edit: 13 years 4 months ago by [Eliot](/forum/user/1824-eliot "View Eliot's Profile").

The following user(s) said Thank You: [oliv](/forum/user/7307-oliv "View oliv's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oliv](/forum/user/7307-oliv "View oliv's Profile")**
- [![oliv's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-04-23.png)](/forum/user/7307-oliv "View oliv's Profile") Topic Author
- [ Offline](/forum/user/7307-oliv)

Less More

- Posts: 257
- Thank you received: 7
-
-
-
- [](http://jardinpromo.com)
-

13 years 5 months ago [\#107131](#107131) by [oliv](/forum/user/7307-oliv "View oliv's Profile")  Replied by *[oliv](/forum/user/7307-oliv "View oliv's Profile")* on topic *[Nom du client dans titre e-mail de commande](/forum/5-support-en-francais-french-support-/83090-nom-du-client-dans-titre-e-mail-de-commande#107131 "Bonjour,  Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.  Le numéro de commande, j'y arrive.  Merci.")*

Merci je me rapproche mais je ne sais si le chemin est encore long. Voici le code collé, il y surement quelque chose qui cloche? Code:

if(empty($order-&gt;mail-&gt;subject)) { $theField=''; foreach($fields as $fieldName =&gt; $oneExtraField) { if($fieldName=='address_company'){ $theField=$oneExtraField-&gt;Company; } } $order-&gt;mail-&gt;subject = JText::sprintf('NEW_ORDER_SUBJECT',$order-&gt;order_number,$theField); }

Et voici un bout de la bdd où je dois sûrement trouver les infos nécessaires?

[ ![2&#95;2013-05-31.JPG](/forum/attachment/10388) ](/forum/attachment/10388 "2&#95;2013-05-31.JPG")

Merci.

- [ ![2&#95;2013-05-31.JPG](/forum/attachment/10388) ](/forum/attachment/10388 "2&#95;2013-05-31.JPG") [ ](/forum/attachment/10388?download=1 "2&#95;2013-05-31.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86316
- Thank you received: 14276
-
-

13 years 5 months ago [\#107195](#107195) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Nom du client dans titre e-mail de commande](/forum/5-support-en-francais-french-support-/83090-nom-du-client-dans-titre-e-mail-de-commande#107195 "Bonjour,  Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.  Le numéro de commande, j'y arrive.  Merci.")*

Ce n'est pas
$theField=$oneExtraField-&gt;Company;

mais
$theField=$data-&gt;address_company;

qu'il faut utiliser.

The following user(s) said Thank You: [oliv](/forum/user/7307-oliv "View oliv's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oliv](/forum/user/7307-oliv "View oliv's Profile")**
- [![oliv's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-04-23.png)](/forum/user/7307-oliv "View oliv's Profile") Topic Author
- [ Offline](/forum/user/7307-oliv)

Less More

- Posts: 257
- Thank you received: 7
-
-
-
- [](http://jardinpromo.com)
-

13 years 4 months ago [\#107426](#107426) by [oliv](/forum/user/7307-oliv "View oliv's Profile")  Replied by *[oliv](/forum/user/7307-oliv "View oliv's Profile")* on topic *[Nom du client dans titre e-mail de commande](/forum/5-support-en-francais-french-support-/83090-nom-du-client-dans-titre-e-mail-de-commande#107426 "Bonjour,  Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.  Le numéro de commande, j'y arrive.  Merci.")*

Merci Nicolas,

J'ai bien le numéro de la commande mais ce fameux champs toujours pas.

Sujet de l'e-mail reçu : "Nouvelle commande No. F1L25 créée sur"

Je n'ai pas d'autre piste.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 4 months ago [\#107451](#107451) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Nom du client dans titre e-mail de commande](/forum/5-support-en-francais-french-support-/83090-nom-du-client-dans-titre-e-mail-de-commande#107451 "Bonjour,  Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.  Le numéro de commande, j'y arrive.  Merci.")*

Bonjour,

Comme l'a dit Nicolas, avez vous essayé directement avec $data-&gt;address_company à la place de $theField dans la ligne: Code:

$order-&gt;mail-&gt;subject = JText::sprintf('NEW_ORDER_SUBJECT',$order-&gt;order_number,$theField);

The following user(s) said Thank You: [oliv](/forum/user/7307-oliv "View oliv's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oliv](/forum/user/7307-oliv "View oliv's Profile")**
- [![oliv's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-04-23.png)](/forum/user/7307-oliv "View oliv's Profile") Topic Author
- [ Offline](/forum/user/7307-oliv)

Less More

- Posts: 257
- Thank you received: 7
-
-
-
- [](http://jardinpromo.com)
-

13 years 4 months ago [\#107456](#107456) by [oliv](/forum/user/7307-oliv "View oliv's Profile")  Replied by *[oliv](/forum/user/7307-oliv "View oliv's Profile")* on topic *[Nom du client dans titre e-mail de commande](/forum/5-support-en-francais-french-support-/83090-nom-du-client-dans-titre-e-mail-de-commande#107456 "Bonjour,  Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.  Le numéro de commande, j'y arrive.  Merci.")*

Bonjour Eliot,

Ca ne marche toujours pas voici où j'en suis :
Code:

$order-&gt;mail-&gt;subject = trim($order-&gt;mail-&gt;subject); if(empty($order-&gt;mail-&gt;subject)) { $theField=''; foreach($fields as $fieldName =&gt; $oneExtraField) { if($fieldName=='address_company'){ $data-&gt;address_company; } } $order-&gt;mail-&gt;subject = JText::sprintf('NEW_ORDER_SUBJECT',$order-&gt;order_number,$data-&gt;address_company); }

Merci.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86316
- Thank you received: 14276
-
-

13 years 4 months ago [\#107501](#107501) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Nom du client dans titre e-mail de commande](/forum/5-support-en-francais-french-support-/83090-nom-du-client-dans-titre-e-mail-de-commande#107501 "Bonjour,  Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.  Le numéro de commande, j'y arrive.  Merci.")*

rajoutez la ligne:
var_dump($data);

et regardez ce que vous avez dans $data et ensuite il suffit d'utiliser l'attribut correspondant à la valeur que vous voulez...

The following user(s) said Thank You: [oliv](/forum/user/7307-oliv "View oliv's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oliv](/forum/user/7307-oliv "View oliv's Profile")**
- [![oliv's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-04-23.png)](/forum/user/7307-oliv "View oliv's Profile") Topic Author
- [ Offline](/forum/user/7307-oliv)

Less More

- Posts: 257
- Thank you received: 7
-
-
-
- [](http://jardinpromo.com)
-

13 years 4 months ago [\#107570](#107570) by [oliv](/forum/user/7307-oliv "View oliv's Profile")  Replied by *[oliv](/forum/user/7307-oliv "View oliv's Profile")* on topic *[Nom du client dans titre e-mail de commande](/forum/5-support-en-francais-french-support-/83090-nom-du-client-dans-titre-e-mail-de-commande#107570 "Bonjour,  Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.  Le numéro de commande, j'y arrive.  Merci.")*

Bonjour,

Où dois-je rajouter cette ligne?

Merci.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 4 months ago [\#107579](#107579) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Nom du client dans titre e-mail de commande](/forum/5-support-en-francais-french-support-/83090-nom-du-client-dans-titre-e-mail-de-commande#107579 "Bonjour,  Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.  Le numéro de commande, j'y arrive.  Merci.")*

Vous pouvez l'ajouter n'importe ou dans votre email (une partie visible tout de même).

The following user(s) said Thank You: [oliv](/forum/user/7307-oliv "View oliv's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oliv](/forum/user/7307-oliv "View oliv's Profile")**
- [![oliv's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-04-23.png)](/forum/user/7307-oliv "View oliv's Profile") Topic Author
- [ Offline](/forum/user/7307-oliv)

Less More

- Posts: 257
- Thank you received: 7
-
-
-
- [](http://jardinpromo.com)
-

13 years 4 months ago [\#107581](#107581) by [oliv](/forum/user/7307-oliv "View oliv's Profile")  Replied by *[oliv](/forum/user/7307-oliv "View oliv's Profile")* on topic *[Nom du client dans titre e-mail de commande](/forum/5-support-en-francais-french-support-/83090-nom-du-client-dans-titre-e-mail-de-commande#107581 "Bonjour,  Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.  Le numéro de commande, j'y arrive.  Merci.")*

Je l'ai mis à la fin du fichier order.php et j'ai rien à la fin de l'e-mail.
Merci.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 4 months ago [\#107606](#107606) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Nom du client dans titre e-mail de commande](/forum/5-support-en-francais-french-support-/83090-nom-du-client-dans-titre-e-mail-de-commande#107606 "Bonjour,  Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.  Le numéro de commande, j'y arrive.  Merci.")*

Bonjour,

Il faut l'ajouter dans l'email en question, en passant par Système &gt; Email et ajouter le var_dump dans le corps de l'email.

The following user(s) said Thank You: [oliv](/forum/user/7307-oliv "View oliv's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oliv](/forum/user/7307-oliv "View oliv's Profile")**
- [![oliv's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-04-23.png)](/forum/user/7307-oliv "View oliv's Profile") Topic Author
- [ Offline](/forum/user/7307-oliv)

Less More

- Posts: 257
- Thank you received: 7
-
-
-
- [](http://jardinpromo.com)
-

13 years 4 months ago [\#107631](#107631) by [oliv](/forum/user/7307-oliv "View oliv's Profile")  Replied by *[oliv](/forum/user/7307-oliv "View oliv's Profile")* on topic *[Nom du client dans titre e-mail de commande](/forum/5-support-en-francais-french-support-/83090-nom-du-client-dans-titre-e-mail-de-commande#107631 "Bonjour,  Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.  Le numéro de commande, j'y arrive.  Merci.")*

Au retour de l'e-mail je trouve bien mon résultat :

["address_company"]=&gt; string(13) "Société XXX"

C'est "Société XXX" que j'aimerais retrouver dans le sujet de l'e-mail.

A la re-lecture de cette discussion, je ne vois pas ce que je peux faire de ce résultat.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 4 months ago [\#107647](#107647) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Nom du client dans titre e-mail de commande](/forum/5-support-en-francais-french-support-/83090-nom-du-client-dans-titre-e-mail-de-commande#107647 "Bonjour,  Je n'arrive pas à afficher un champs personnalisé dans le titre de l'e-mail de Notification de commande à l'administrateur.  Le numéro de commande, j'y arrive.  Merci.")*

Voici la ligne qu'il vous faut:
Code:

$order-&gt;mail-&gt;subject = JText::sprintf('NEW_ORDER_SUBJECT',$order-&gt;order_number,$data['address_company']);

The following user(s) said Thank You: [oliv](/forum/user/7307-oliv "View oliv's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.170 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
