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

#   Facture PDF : afficher leshamps personnalisées

##

- **[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") Topic Author
- [ Offline](/forum/user/13963-testy60)

Less More

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

13 years 4 months ago [\#113913](#113913) by [testy60](/forum/user/13963-testy60 "View testy60's Profile")  *[Facture PDF : afficher leshamps personnalisées](/forum/5-support-en-francais-french-support-/85331-facture-pdf-afficher-leshamps-personnalisees#113913 "Bonjour,  Dans la facture PDF, j'aimerais afficher les champs personnalisées du groupe &quot;address&quot;  J'arrive à afficher les champs personnalisées du groupe &quot;order&quot; mais pas &quot;adress&quot;.  Merci bien.")* was created by *[testy60](/forum/user/13963-testy60 "View testy60's Profile")*

Bonjour,

Dans la facture PDF, j'aimerais afficher les champs personnalisées du groupe "address"

J'arrive à afficher les champs personnalisées du groupe "order" mais pas "adress".

Merci bien.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODUzMzEtZmFjdHVyZS1wZGYtYWZmaWNoZXItbGVzaGFtcHMtcGVyc29ubmFsaXNlZXM/dG1wbD1tYXJrZG93bg==) 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 [\#113930](#113930) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Facture PDF : afficher leshamps personnalisées](/forum/5-support-en-francais-french-support-/85331-facture-pdf-afficher-leshamps-personnalisees#113930 "Bonjour,  Dans la facture PDF, j'aimerais afficher les champs personnalisées du groupe &quot;address&quot;  J'arrive à afficher les champs personnalisées du groupe &quot;order&quot; mais pas &quot;adress&quot;.  Merci bien.")*

Bonjour,

Vous trouverez une réponse à cette question ici: [ www.hikashop.com/en/forum/4-how-to/69014...on-invoic.html#69014](http://www.hikashop.com/en/forum/4-how-to/69014-address2-and-custom-field-address3-not-on-invoic.html#69014)
Il faut que vous éditiez le fichier invoice.php et que vous utilisiez la variable $order-&gt;$oneAddress.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODUzMzEtZmFjdHVyZS1wZGYtYWZmaWNoZXItbGVzaGFtcHMtcGVyc29ubmFsaXNlZXM/dG1wbD1tYXJrZG93bg==) 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") Topic Author
- [ Offline](/forum/user/13963-testy60)

Less More

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

13 years 4 months ago [\#113944](#113944) by [testy60](/forum/user/13963-testy60 "View testy60's Profile")  Replied by *[testy60](/forum/user/13963-testy60 "View testy60's Profile")* on topic *[Facture PDF : afficher leshamps personnalisées](/forum/5-support-en-francais-french-support-/85331-facture-pdf-afficher-leshamps-personnalisees#113944 "Bonjour,  Dans la facture PDF, j'aimerais afficher les champs personnalisées du groupe &quot;address&quot;  J'arrive à afficher les champs personnalisées du groupe &quot;order&quot; mais pas &quot;adress&quot;.  Merci bien.")*

Bonjour,

Merci pour le lien mais je ne pense pas que ça soit la réponse à ma question.

J'arrive à insérer les champs personnalisées  de la Table "Order", mais si j'ajoute un champs personnalisé dans la table "Adress" ça ne s'affiche pas dans le PDF.

Merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODUzMzEtZmFjdHVyZS1wZGYtYWZmaWNoZXItbGVzaGFtcHMtcGVyc29ubmFsaXNlZXM/dG1wbD1tYXJrZG93bg==) 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 [\#114057](#114057) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Facture PDF : afficher leshamps personnalisées](/forum/5-support-en-francais-french-support-/85331-facture-pdf-afficher-leshamps-personnalisees#114057 "Bonjour,  Dans la facture PDF, j'aimerais afficher les champs personnalisées du groupe &quot;address&quot;  J'arrive à afficher les champs personnalisées du groupe &quot;order&quot; mais pas &quot;adress&quot;.  Merci bien.")*

Bonjour,

C'est exactement le sujet du lien que je vous ai donné ![;)](/media/kunena/emoticons/24.png ";)")
Il faut que vous éditiez le fichier plugins/hikashop/attachinvoice/attachinvoice/invoice.php pour ajouter les champs que vous voulez voir apparaître.
Je vous conseil dans un premier temps de rajouter un var_dump($order); dans ce fichier pour visualiser l'ensemble des informations contenues dans la commande.
Vous pourrez ensuite afficher celles qui vous intéresse avec un code du type:

echo $order-&gt;$oneAddress-&gt;votrechamppersonnalisé;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODUzMzEtZmFjdHVyZS1wZGYtYWZmaWNoZXItbGVzaGFtcHMtcGVyc29ubmFsaXNlZXM/dG1wbD1tYXJrZG93bg==) 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") Topic Author
- [ Offline](/forum/user/13963-testy60)

Less More

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

13 years 4 months ago [\#114137](#114137) by [testy60](/forum/user/13963-testy60 "View testy60's Profile")  Replied by *[testy60](/forum/user/13963-testy60 "View testy60's Profile")* on topic *[Facture PDF : afficher leshamps personnalisées](/forum/5-support-en-francais-french-support-/85331-facture-pdf-afficher-leshamps-personnalisees#114137 "Bonjour,  Dans la facture PDF, j'aimerais afficher les champs personnalisées du groupe &quot;address&quot;  J'arrive à afficher les champs personnalisées du groupe &quot;order&quot; mais pas &quot;adress&quot;.  Merci bien.")*

Bnjour Eliot,

Malheureusement je n'y arrive pas, ça ne fonctionne pas (je débute en PHP).

J'ai mis dans "invoice.php" le code :
Code:

&lt;?php echo $order-&gt;$oneAddress-&gt;nomdevotrebanque; ?&gt;

(le "nomdevotrebanque" c'est le champs personnalisé de la table Address)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODUzMzEtZmFjdHVyZS1wZGYtYWZmaWNoZXItbGVzaGFtcHMtcGVyc29ubmFsaXNlZXM/dG1wbD1tYXJrZG93bg==) 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 [\#114164](#114164) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Facture PDF : afficher leshamps personnalisées](/forum/5-support-en-francais-french-support-/85331-facture-pdf-afficher-leshamps-personnalisees#114164 "Bonjour,  Dans la facture PDF, j'aimerais afficher les champs personnalisées du groupe &quot;address&quot;  J'arrive à afficher les champs personnalisées du groupe &quot;order&quot; mais pas &quot;adress&quot;.  Merci bien.")*

Avez vous essayé le var_dump($order)?
Cela vous permettra de voir les informations et de choisir celle que vous voulez afficher.
Soyez sur d'éditer le bon fichier aussi.

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

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