[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/core/svg/person.svg)](/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 [\#108089](#108089) 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?start=20#108089 "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,

Ca marche toujours pas.

Pour résumer, ça aidera toujours ceux qui désirent en faire de même :

Dans l'override du fichier langue :

NEW_ORDER_SUBJECT="Nouvelle commande No. %s créée sur blabla.com par %s"

Dans l'email "Notification de commande à l'administrateur" :

On supprime le sujet de l'e-mail
[ ![1&#95;2013-06-07.JPG](/forum/attachment/10483) ](/forum/attachment/10483 "1&#95;2013-06-07.JPG")

Dans le fichier order.php (administrator/components/com_hikashop/classes):
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'){ $theField=$oneExtraField-&gt;Company; } } $order-&gt;mail-&gt;subject = JText::sprintf('NEW_ORDER_SUBJECT',$order-&gt;order_number,$fieldName['address_company']); }

Merci.

- [ ![1&#95;2013-06-07.JPG](/forum/attachment/10483) ](/forum/attachment/10483 "1&#95;2013-06-07.JPG") [ ](/forum/attachment/10483?download=1 "1&#95;2013-06-07.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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: 86560
- Thank you received: 14307
-
-

13 years 5 months ago [\#108252](#108252) 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?start=20#108252 "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.")*

Non mais c'est normal.
$fieldName, ca n'a aucun sens. $fieldName est le nom du champs c'est normal que ca ne retourne rien.

Il faut récupérer le champs address_company dans $data, comme je vous avez expliqué dans mon message précédent.
don ca serait plutot quelque chose genre $data-&gt;billing_address-&gt;address_company qu'il faudrait utiliser.

Et je vous déconseille de faire cette modification dans le code de classes/order.php mais plutot via l'edition de l'email via le menu Système&gt;Emails. Sinon vous perdrez vos modifications à chaque mise à jour.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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/core/svg/person.svg)](/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 [\#110850](#110850) 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?start=20#110850 "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,
Pouvez-vous m'indiquer dans quel e-mail je dois entrer ces codes?
[ ![01&#95;2013-06-26.JPG](/forum/attachment/10812) ](/forum/attachment/10812 "01&#95;2013-06-26.JPG")

Merci.

- [ ![01&#95;2013-06-26.JPG](/forum/attachment/10812) ](/forum/attachment/10812 "01&#95;2013-06-26.JPG") [ ](/forum/attachment/10812?download=1 "01&#95;2013-06-26.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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 4 months ago [\#110869](#110869) 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?start=20#110869 "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 qu'il vous faudra l'ajouter dans l'email nommé "Notification de commande à l'administrateur".

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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/core/svg/person.svg)](/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 -  13 years 4 months ago [\#110884](#110884) 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?start=20#110884 "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.")*

Dans cette discussion, Eliot écrit :

> "Il suffit de les mettre au dessus de la ligne
>
> $order-&gt;mail-&gt;subject = JText::sprintf('NEW\_ORDER\_SUBJECT',$order-&gt;order\_number,$theField);"

Hors je ne trouve pas cette ligne dans l'email "Notification de commande à l'administrateur".

Etes-vous sûr que le fichier order.php est modifiable via la console d'administration dans cet email? Ceci bien-sûr afin de ne pas perdre la modification à chaque mise à jour (ici je fais référence à un message de Nicolas).

Merci.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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: 86560
- Thank you received: 14307
-
-

13 years 4 months ago [\#110890](#110890) 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?start=20#110890 "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.")*

Dans le fichier order.php (administrator/components/com_hikashop/classes), remplacez la ligne:
$order-&gt;mail-&gt;subject = JText::sprintf('NEW_ORDER_SUBJECT',$order-&gt;order_number);

par:
$order-&gt;mail-&gt;subject = JText::sprintf('NEW_ORDER_SUBJECT',$order-&gt;order_number,$order-&gt;cart-&gt;billing_address-&gt;address_company);

Et rien d'autre.
La modification sera perdu à chaque mise à jour.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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/core/svg/person.svg)](/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 [\#110901](#110901) 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?start=20#110901 "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.")*

Un grand merci Nicolas, c'était ce qu'il fallait faire.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODMwOTAtbm9tLWR1LWNsaWVudC1kYW5zLXRpdHJlLWUtbWFpbC1kZS1jb21tYW5kZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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.081 seconds

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