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

#   Afficher infos client (login ou email) sur facture

##

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 4 months ago [\#109990](#109990) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Afficher infos client (login ou email) sur facture](/forum/5-support-en-francais-french-support-/26359-afficher-infos-client-login-ou-email-sur-facture?start=20#109990 "Bonjour,  J'aimerais pouvoir rappeler au client son login et/ou son email sur les documents qu'il reçoit ou peut imprimer. Comment accéder à ces données (notamment à partir de la vue 'order/show' )?  Genev.")*

Bonjour,

Ces infos sont présentes dans l'object php $this-&gt;order.
Vous pouvez utiliser le code:
var_dump($this-&gt;order);
pour voir ce qui est contenu dans cet objet et après afficher les éléments désirés.

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

- **[WebConseil](/forum/user/13951-webconseil "View WebConseil's Profile")**
- [![WebConseil's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13951-webconseil "View WebConseil's Profile")
- [ Offline](/forum/user/13951-webconseil)

Less More

- Posts: 138
- Thank you received: 2
-
-

13 years 4 months ago [\#110032](#110032) by [WebConseil](/forum/user/13951-webconseil "View WebConseil's Profile")  Replied by *[WebConseil](/forum/user/13951-webconseil "View WebConseil's Profile")* on topic *[Re: Afficher infos client (login ou email) sur facture](/forum/5-support-en-francais-french-support-/26359-afficher-infos-client-login-ou-email-sur-facture?start=20#110032 "Bonjour,  J'aimerais pouvoir rappeler au client son login et/ou son email sur les documents qu'il reçoit ou peut imprimer. Comment accéder à ces données (notamment à partir de la vue 'order/show' )?  Genev.")*

Bonjour,

Merci.
Mais "utiliser le code..." consiste en quoi concrètement ?
J'ai tenté par exemple &lt;? echo var_dump($this-&gt;order); ?&gt; mais le résultat est confus ![:unsure:](/media/kunena/emoticons/18.png ":unsure:")
Cordialement.

PS

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

- **[testy60](/forum/user/13963-testy60 "View testy60's Profile")**
- [![testy60's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13963-testy60 "View testy60's Profile")
- [ Offline](/forum/user/13963-testy60)

Less More

- Posts: 72
- Thank you received: 0
-
-

13 years 4 months ago [\#110047](#110047) by [testy60](/forum/user/13963-testy60 "View testy60's Profile")  Replied by *[testy60](/forum/user/13963-testy60 "View testy60's Profile")* on topic *[Afficher infos client (login ou email) sur facture](/forum/5-support-en-francais-french-support-/26359-afficher-infos-client-login-ou-email-sur-facture?start=20#110047 "Bonjour,  J'aimerais pouvoir rappeler au client son login et/ou son email sur les documents qu'il reçoit ou peut imprimer. Comment accéder à ces données (notamment à partir de la vue 'order/show' )?  Genev.")*

Bonjour,

Je cherche depuis hier à faire exactement la même chose (client non-inscrit), j'ai essayer le :
Code:

&lt;?php echo 'email: '.$this-&gt;order-&gt;customer-&gt;user_email; ?&gt;

mais ca ne fonctionne pas...

Merci

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

13 years 4 months ago [\#110147](#110147) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Afficher infos client (login ou email) sur facture](/forum/5-support-en-francais-french-support-/26359-afficher-infos-client-login-ou-email-sur-facture?start=20#110147 "Bonjour,  J'aimerais pouvoir rappeler au client son login et/ou son email sur les documents qu'il reçoit ou peut imprimer. Comment accéder à ces données (notamment à partir de la vue 'order/show' )?  Genev.")*

Bonjour,

@WebConseil
Le résultat de var_dump va vous afficher tout le contenu de la variable. Comme cela vous pouvez facilement voir quelle information est où et comment l'utiliser.

Si vous avez trouvé le numéro de facture, le numéro de facture est facil à trouver, c'est: $order-&gt;order_number
La date de la commande, c'est $order-&gt;order_created
La date de la facture, c'est $order-&gt;order_invoice_created

@testy60 C'est comme cela qu'il faut faire.
Si cela ne fonctionne pas, c'est que vous n'éditez pas la vue pour le bon template

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

- **[testy60](/forum/user/13963-testy60 "View testy60's Profile")**
- [![testy60's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13963-testy60 "View testy60's Profile")
- [ Offline](/forum/user/13963-testy60)

Less More

- Posts: 72
- Thank you received: 0
-
-

13 years 4 months ago [\#110180](#110180) by [testy60](/forum/user/13963-testy60 "View testy60's Profile")  Replied by *[testy60](/forum/user/13963-testy60 "View testy60's Profile")* on topic *[Afficher infos client (login ou email) sur facture](/forum/5-support-en-francais-french-support-/26359-afficher-infos-client-login-ou-email-sur-facture?start=20#110180 "Bonjour,  J'aimerais pouvoir rappeler au client son login et/ou son email sur les documents qu'il reçoit ou peut imprimer. Comment accéder à ces données (notamment à partir de la vue 'order/show' )?  Genev.")*

Bonjour,

@Nicolas, je modifie bien le Template utilisé et ça ne fonctionne pas (rien sur le PDF ni sur le site).

Voilà où j'ai inséré le code :
Code:

&lt;fieldset class="adminform" id="htmlfieldset_billing"&gt; &lt;legend style="background-color: #FFFFFF;"&gt;&lt;?php echo JText::_('HIKASHOP_BILLING_ADDRESS'); ?&gt;&lt;/legend&gt; &lt;?php $this-&gt;setLayout('address_template'); $html = $this-&gt;loadTemplate(); foreach($this-&gt;element-&gt;fields as $field){ $fieldname = $field-&gt;field_namekey; $html=str_replace('{'.$fieldname.'}',$this-&gt;fieldsClass-&gt;show($field,$this-&gt;element-&gt;billing_address-&gt;$fieldname),$html); } echo str_replace("\n","&lt;br/&gt;\n",trim(str_replace("\n\n","\n",preg_replace('#{(?:(?!}).)*}#i','',$html)),"\n")); echo 'email: '.$this-&gt;order-&gt;customer-&gt;user_email; ?&gt; &lt;/fieldset&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMjYzNTktYWZmaWNoZXItaW5mb3MtY2xpZW50LWxvZ2luLW91LWVtYWlsLXN1ci1mYWN0dXJlP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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 [\#110224](#110224) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Afficher infos client (login ou email) sur facture](/forum/5-support-en-francais-french-support-/26359-afficher-infos-client-login-ou-email-sur-facture?start=20#110224 "Bonjour,  J'aimerais pouvoir rappeler au client son login et/ou son email sur les documents qu'il reçoit ou peut imprimer. Comment accéder à ces données (notamment à partir de la vue 'order/show' )?  Genev.")*

Bonjour,

Essayez avant le echo str_replace.
Au passage, si "email" ne s'affiche même pas c'est que vous modifiez la mauvaise vue.

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

- **[testy60](/forum/user/13963-testy60 "View testy60's Profile")**
- [![testy60's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13963-testy60 "View testy60's Profile")
- [ Offline](/forum/user/13963-testy60)

Less More

- Posts: 72
- Thank you received: 0
-
-

13 years 4 months ago [\#110238](#110238) by [testy60](/forum/user/13963-testy60 "View testy60's Profile")  Replied by *[testy60](/forum/user/13963-testy60 "View testy60's Profile")* on topic *[Afficher infos client (login ou email) sur facture](/forum/5-support-en-francais-french-support-/26359-afficher-infos-client-login-ou-email-sur-facture?start=20#110238 "Bonjour,  J'aimerais pouvoir rappeler au client son login et/ou son email sur les documents qu'il reçoit ou peut imprimer. Comment accéder à ces données (notamment à partir de la vue 'order/show' )?  Genev.")*

Merci, ça ne fonctionne toujours.

Est ce qu'il est possible d'afficher directement l'email dans le PDF en modifiant directement le fichier : "plugins/hikashop/attachinvoice/attachinvoice/invoice.php" ? Sans passer par le backoffice parce que je bloque dessus (et les utilisateurs n'auront pas accès à la facture depuis le site de toute façon).

Merci beaucoup

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

13 years 4 months ago [\#110242](#110242) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Afficher infos client (login ou email) sur facture](/forum/5-support-en-francais-french-support-/26359-afficher-infos-client-login-ou-email-sur-facture?start=20#110242 "Bonjour,  J'aimerais pouvoir rappeler au client son login et/ou son email sur les documents qu'il reçoit ou peut imprimer. Comment accéder à ces données (notamment à partir de la vue 'order/show' )?  Genev.")*

Vous dites que vous afficher un PDF, mais la modification dont nous parlons sur ce sujet concerne les factures en HTML, pas celles en PDF.
Pour les factures en PDF il faut en effet éditer le fichier "plugins/hikashop/attachinvoice/attachinvoice/invoice.php" de la même manière. Il n'y a pas d'autre façon de faire, et cela n'est pas un problème.

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

- **[testy60](/forum/user/13963-testy60 "View testy60's Profile")**
- [![testy60's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13963-testy60 "View testy60's Profile")
- [ Offline](/forum/user/13963-testy60)

Less More

- Posts: 72
- Thank you received: 0
-
-

13 years 4 months ago [\#110244](#110244) by [testy60](/forum/user/13963-testy60 "View testy60's Profile")  Replied by *[testy60](/forum/user/13963-testy60 "View testy60's Profile")* on topic *[Afficher infos client (login ou email) sur facture](/forum/5-support-en-francais-french-support-/26359-afficher-infos-client-login-ou-email-sur-facture?start=20#110244 "Bonjour,  J'aimerais pouvoir rappeler au client son login et/ou son email sur les documents qu'il reçoit ou peut imprimer. Comment accéder à ces données (notamment à partir de la vue 'order/show' )?  Genev.")*

Ahh ! Moi je modifiait la vue.

J'ai réussi à insérer le tout dans invoice.php, j'ai le "email :" mais pas l'adresse du client... :S

Le code :

&lt;td valign="top"&gt;

&lt;fieldset&gt;

&lt;legend&gt;&lt;?php echo JText::_('HIKASHOP_'.strtoupper($oneAddress)); ?&gt;&lt;/legend&gt;

&lt;?php

if(!empty($order-&gt;$oneAddress-&gt;address_company)) echo $order-&gt;$oneAddress-&gt;address_company.'&lt;br/&gt;';

echo 'email: '.$this-&gt;order-&gt;customer-&gt;user_email;

echo $order-&gt;$oneAddress-&gt;address_title.' '.$order-&gt;$oneAddress-&gt;address_firstname.' '.$order-&gt;$oneAddress-&gt;address_lastname.'&lt;br/&gt;';

echo $order-&gt;$oneAddress-&gt;address_street.'&lt;br/&gt;';

echo $order-&gt;$oneAddress-&gt;address_post_code.' '.$order-&gt;$oneAddress-&gt;address_city.' '.$order-&gt;$oneAddress-&gt;address_state.'&lt;br/&gt;';

echo $order-&gt;$oneAddress-&gt;address_country.'&lt;br/&gt;';

if(!empty($order-&gt;$oneAddress-&gt;address_telephone)) echo JText::sprintf('TELEPHONE_IN_ADDRESS',$order-&gt;$oneAddress-&gt;address_telephone).'&lt;br/&gt;';

if(!empty($order-&gt;$oneAddress-&gt;address_vat)) echo JText::_('VAT_NUMBER').' : '.$order-&gt;$oneAddress-&gt;address_vat.'&lt;br/&gt;';

?&gt;

&lt;/fieldset&gt;

&lt;/td&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMjYzNTktYWZmaWNoZXItaW5mb3MtY2xpZW50LWxvZ2luLW91LWVtYWlsLXN1ci1mYWN0dXJlP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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 [\#110251](#110251) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Afficher infos client (login ou email) sur facture](/forum/5-support-en-francais-french-support-/26359-afficher-infos-client-login-ou-email-sur-facture?start=20#110251 "Bonjour,  J'aimerais pouvoir rappeler au client son login et/ou son email sur les documents qu'il reçoit ou peut imprimer. Comment accéder à ces données (notamment à partir de la vue 'order/show' )?  Genev.")*

Ce n'est pas $this-&gt;order-&gt;customer-&gt;user_email qu'il faut mais $order-&gt;customer-&gt;user_email comme pour les autres variables que vous affichez ![;)](/media/kunena/emoticons/24.png ";)")

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

- **[testy60](/forum/user/13963-testy60 "View testy60's Profile")**
- [![testy60's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13963-testy60 "View testy60's Profile")
- [ Offline](/forum/user/13963-testy60)

Less More

- Posts: 72
- Thank you received: 0
-
-

13 years 4 months ago [\#110255](#110255) by [testy60](/forum/user/13963-testy60 "View testy60's Profile")  Replied by *[testy60](/forum/user/13963-testy60 "View testy60's Profile")* on topic *[Afficher infos client (login ou email) sur facture](/forum/5-support-en-francais-french-support-/26359-afficher-infos-client-login-ou-email-sur-facture?start=20#110255 "Bonjour,  J'aimerais pouvoir rappeler au client son login et/ou son email sur les documents qu'il reçoit ou peut imprimer. Comment accéder à ces données (notamment à partir de la vue 'order/show' )?  Genev.")*

Tip TOP !! Ca fonctionne à merveille.

Merci beaucoup ![:-)](/media/kunena/emoticons/3.png ":-)")

Juste une dernière question : pour faire la même chose mais avec le code produit (afficher le code produit) ?

Merci ![:-)](/media/kunena/emoticons/3.png ":-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMjYzNTktYWZmaWNoZXItaW5mb3MtY2xpZW50LWxvZ2luLW91LWVtYWlsLXN1ci1mYWN0dXJlP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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 [\#110259](#110259) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Afficher infos client (login ou email) sur facture](/forum/5-support-en-francais-french-support-/26359-afficher-infos-client-login-ou-email-sur-facture?start=20#110259 "Bonjour,  J'aimerais pouvoir rappeler au client son login et/ou son email sur les documents qu'il reçoit ou peut imprimer. Comment accéder à ces données (notamment à partir de la vue 'order/show' )?  Genev.")*

Probablement $order-&gt;order_id.
N'hésitez pas à faire un var_dump($order); pour voir ce qu'il y a à l'intérieur de l'object ![;)](/media/kunena/emoticons/24.png ";)")

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

- **[testy60](/forum/user/13963-testy60 "View testy60's Profile")**
- [![testy60's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13963-testy60 "View testy60's Profile")
- [ Offline](/forum/user/13963-testy60)

Less More

- Posts: 72
- Thank you received: 0
-
-

13 years 4 months ago [\#110336](#110336) by [testy60](/forum/user/13963-testy60 "View testy60's Profile")  Replied by *[testy60](/forum/user/13963-testy60 "View testy60's Profile")* on topic *[Afficher infos client (login ou email) sur facture](/forum/5-support-en-francais-french-support-/26359-afficher-infos-client-login-ou-email-sur-facture?start=20#110336 "Bonjour,  J'aimerais pouvoir rappeler au client son login et/ou son email sur les documents qu'il reçoit ou peut imprimer. Comment accéder à ces données (notamment à partir de la vue 'order/show' )?  Genev.")*

Bonjour,

J'ai essayer mais ça ne fonctionne pas. Ca affiche le code de la facture mais je souhaite avoir le CODE PRODUIT.

Pour le " var_dump($order); " je n'ai pas bien compris ![:-)](/media/kunena/emoticons/3.png ":-)")

Merci pour votre aide

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

13 years 4 months ago [\#110339](#110339) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Afficher infos client (login ou email) sur facture](/forum/5-support-en-francais-french-support-/26359-afficher-infos-client-login-ou-email-sur-facture?start=20#110339 "Bonjour,  J'aimerais pouvoir rappeler au client son login et/ou son email sur les documents qu'il reçoit ou peut imprimer. Comment accéder à ces données (notamment à partir de la vue 'order/show' )?  Genev.")*

pour le code produit c'est:
echo $product-&gt;order_product_code;

Vous pouvez le mettre par exemple après:
echo $product-&gt;order_product_name;

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

- **[testy60](/forum/user/13963-testy60 "View testy60's Profile")**
- [![testy60's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13963-testy60 "View testy60's Profile")
- [ Offline](/forum/user/13963-testy60)

Less More

- Posts: 72
- Thank you received: 0
-
-

13 years 4 months ago [\#110345](#110345) by [testy60](/forum/user/13963-testy60 "View testy60's Profile")  Replied by *[testy60](/forum/user/13963-testy60 "View testy60's Profile")* on topic *[Afficher infos client (login ou email) sur facture](/forum/5-support-en-francais-french-support-/26359-afficher-infos-client-login-ou-email-sur-facture?start=20#110345 "Bonjour,  J'aimerais pouvoir rappeler au client son login et/ou son email sur les documents qu'il reçoit ou peut imprimer. Comment accéder à ces données (notamment à partir de la vue 'order/show' )?  Genev.")*

Bonjour Nicolas,

Merci ça marche nickel ![:-)](/media/kunena/emoticons/3.png ":-)") ![:-)](/media/kunena/emoticons/3.png ":-)")

Bon courage.

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

- **[WebConseil](/forum/user/13951-webconseil "View WebConseil's Profile")**
- [![WebConseil's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13951-webconseil "View WebConseil's Profile")
- [ Offline](/forum/user/13951-webconseil)

Less More

- Posts: 138
- Thank you received: 2
-
-

13 years 4 months ago [\#110491](#110491) by [WebConseil](/forum/user/13951-webconseil "View WebConseil's Profile")  Replied by *[WebConseil](/forum/user/13951-webconseil "View WebConseil's Profile")* on topic *[Afficher infos client (login ou email) sur facture](/forum/5-support-en-francais-french-support-/26359-afficher-infos-client-login-ou-email-sur-facture?start=20#110491 "Bonjour,  J'aimerais pouvoir rappeler au client son login et/ou son email sur les documents qu'il reçoit ou peut imprimer. Comment accéder à ces données (notamment à partir de la vue 'order/show' )?  Genev.")*

Bonjour,

Pour ce qui me concerne, j'ai trouvé toutes les données que je voulais afficher grâce à vos indications.
Il me manque le n° de commande : $order-&gt;order_number (et ses déclinaisons ![:)](/media/kunena/emoticons/3.png ":)")) ne fonctionne pas.
Cordialement.

PS

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

- **[WebConseil](/forum/user/13951-webconseil "View WebConseil's Profile")**
- [![WebConseil's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13951-webconseil "View WebConseil's Profile")
- [ Offline](/forum/user/13951-webconseil)

Less More

- Posts: 138
- Thank you received: 2
-
-

13 years 4 months ago [\#110492](#110492) by [WebConseil](/forum/user/13951-webconseil "View WebConseil's Profile")  Replied by *[WebConseil](/forum/user/13951-webconseil "View WebConseil's Profile")* on topic *[Afficher infos client (login ou email) sur facture](/forum/5-support-en-francais-french-support-/26359-afficher-infos-client-login-ou-email-sur-facture?start=20#110492 "Bonjour,  J'aimerais pouvoir rappeler au client son login et/ou son email sur les documents qu'il reçoit ou peut imprimer. Comment accéder à ces données (notamment à partir de la vue 'order/show' )?  Genev.")*

Re,

Non, non, c'est bon !!
Désolé, c'est moi qui ai fait une erreur dans le php !
Merci pour toutes vos indications.
Cordialement.

PS

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

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

[](#top)
