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

#   PDF invoice

##

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

Less More

- Posts: 10
- Thank you received: 0
-
-

11 years 9 months ago [\#190204](#190204) by [aax](/forum/user/36098-aax "View aax's Profile")  Replied by *[aax](/forum/user/36098-aax "View aax's Profile")* on topic *[PDF invoice](/forum/4-how-to/9505-pdf-invoice?start=20#190204 "Hi!  Is it possible to attach the invoice as a PDF instead of HTML to the confirmation mail send to a customer after an order is created?  Best regards")*

Bonjour,

Utilisateur de la version starter et avant d'acheter le plugin PDF invoice, je voudrais être sur qu'il joint bien la facture que l'on peut voir sur les commandes en back et non une simple copie du mail de confirmation.

Merci.

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

- **[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)
-

11 years 9 months ago [\#190208](#190208) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[PDF invoice](/forum/4-how-to/9505-pdf-invoice?start=20#190208 "Hi!  Is it possible to attach the invoice as a PDF instead of HTML to the confirmation mail send to a customer after an order is created?  Best regards")*

Bonjour,

Ce plugin sert à attacher la facture en format pdf à l'email envoyé au client lorsque la commande est confirmée.
Le format de la facture est contenu dans le fichier "plugins/hikashop/attachinvoice/attachinvoice/invoice.php"

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

11 years 9 months ago [\#190263](#190263) by [aax](/forum/user/36098-aax "View aax's Profile")  Replied by *[aax](/forum/user/36098-aax "View aax's Profile")* on topic *[PDF invoice](/forum/4-how-to/9505-pdf-invoice?start=20#190263 "Hi!  Is it possible to attach the invoice as a PDF instead of HTML to the confirmation mail send to a customer after an order is created?  Best regards")*

Merci. Plugin acheté c'est parfait.

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

- **[lt635](/forum/user/32929-lt635 "View lt635's Profile")**
- [![lt635's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32929.jpg)](/forum/user/32929-lt635 "View lt635's Profile")
- [ Offline](/forum/user/32929-lt635)

Less More

- Posts: 191
- Thank you received: 5
-
-

11 years 6 months ago [\#201597](#201597) by [lt635](/forum/user/32929-lt635 "View lt635's Profile")  Replied by *[lt635](/forum/user/32929-lt635 "View lt635's Profile")* on topic *[PDF invoice](/forum/4-how-to/9505-pdf-invoice?start=20#201597 "Hi!  Is it possible to attach the invoice as a PDF instead of HTML to the confirmation mail send to a customer after an order is created?  Best regards")*

Hello,

Is the pdf invoice also attached to the administrator email? I have the shop owner wanting the pdf invoice, does not like the html invoice, having problem printing them.

Also, does the pdf invoice now include product images?

Thank you
Kind regards
Lene

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

- **[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)
-

11 years 6 months ago [\#201611](#201611) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[PDF invoice](/forum/4-how-to/9505-pdf-invoice?start=20#201611 "Hi!  Is it possible to attach the invoice as a PDF instead of HTML to the confirmation mail send to a customer after an order is created?  Best regards")*

Hi,

No the pdf invoice is not attached to the administrator email, but you can edit the plugin settings in order to populate the field "Send a copy to" with the admin email address. This way he will receive the pdf invoice at the same time than the user.

The plugin does not include product images, but that can potentially be done by editing the file "plugins/hikashop/attachinvoice/attachinvoice/invoice.php".

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

- **[lt635](/forum/user/32929-lt635 "View lt635's Profile")**
- [![lt635's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32929.jpg)](/forum/user/32929-lt635 "View lt635's Profile")
- [ Offline](/forum/user/32929-lt635)

Less More

- Posts: 191
- Thank you received: 5
-
-

11 years 6 months ago [\#201714](#201714) by [lt635](/forum/user/32929-lt635 "View lt635's Profile")  Replied by *[lt635](/forum/user/32929-lt635 "View lt635's Profile")* on topic *[PDF invoice](/forum/4-how-to/9505-pdf-invoice?start=20#201714 "Hi!  Is it possible to attach the invoice as a PDF instead of HTML to the confirmation mail send to a customer after an order is created?  Best regards")*

Thank you, that is great ![:)](/media/kunena/emoticons/3.png ":)") .

Regards
Lene

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

- **[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")**
- [![huwhuw's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35272.jpg)](/forum/user/35272-huwhuw "View huwhuw's Profile")
- [ Offline](/forum/user/35272-huwhuw)

Less More

- Posts: 84
- Thank you received: 9
-
-

11 years 3 months ago [\#209061](#209061) by [huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")  Replied by *[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")* on topic *[PDF invoice](/forum/4-how-to/9505-pdf-invoice?start=20#209061 "Hi!  Is it possible to attach the invoice as a PDF instead of HTML to the confirmation mail send to a customer after an order is created?  Best regards")*

Hi can you give a code hint on how to show the product image in the pdf invoice

plugins/hikashop/attachinvoice/attachinvoice/invoice.php

Thanks

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

11 years 3 months ago [\#209064](#209064) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[PDF invoice](/forum/4-how-to/9505-pdf-invoice?start=20#209064 "Hi!  Is it possible to attach the invoice as a PDF instead of HTML to the confirmation mail send to a customer after an order is created?  Best regards")*

Hi,

I'll recommend you that thread :
[ www.hikashop.com/forum/4-how-to/66908-ad...o-attachinvoice.html](http://www.hikashop.com/forum/4-how-to/66908-adding-an-image-to-attachinvoice.html)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")**
- [![huwhuw's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35272.jpg)](/forum/user/35272-huwhuw "View huwhuw's Profile")
- [ Offline](/forum/user/35272-huwhuw)

Less More

- Posts: 84
- Thank you received: 9
-
-

11 years 3 months ago [\#209490](#209490) by [huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")  Replied by *[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")* on topic *[PDF invoice](/forum/4-how-to/9505-pdf-invoice?start=20#209490 "Hi!  Is it possible to attach the invoice as a PDF instead of HTML to the confirmation mail send to a customer after an order is created?  Best regards")*

Hi Jerome
Thanks the last post sorted my issue with the image file in the pdf.
I have a custom text area field that a customer fills out when buying a product - how can i display this in the pdf invoice?
I looked in Views order / invoice.php and saw some reference e.g line 135 &lt;p class="hikashop_order_product_custom_item_fields"&gt; but the following php didnt seem right so i think I'm barking up the wrong tree!
Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzk1MDUtcGRmLWludm9pY2U/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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: 86552
- Thank you received: 14304
-
-

11 years 3 months ago [\#209494](#209494) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PDF invoice](/forum/4-how-to/9505-pdf-invoice?start=20#209494 "Hi!  Is it possible to attach the invoice as a PDF instead of HTML to the confirmation mail send to a customer after an order is created?  Best regards")*

Hi,

How did you configure your "custom text area field" ? Could you provide a screenshot of its settings so that we can understand exactly what you're trying to display ?

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

- **[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")**
- [![huwhuw's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35272.jpg)](/forum/user/35272-huwhuw "View huwhuw's Profile")
- [ Offline](/forum/user/35272-huwhuw)

Less More

- Posts: 84
- Thank you received: 9
-
-

11 years 3 months ago [\#209518](#209518) by [huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")  Replied by *[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")* on topic *[PDF invoice](/forum/4-how-to/9505-pdf-invoice?start=20#209518 "Hi!  Is it possible to attach the invoice as a PDF instead of HTML to the confirmation mail send to a customer after an order is created?  Best regards")*

Thanks Nicolas
See the screen shot

- [ ![aaa.png](/forum/attachment/25684) ](/forum/attachment/25684 "aaa.png") [ ](/forum/attachment/25684?download=1 "aaa.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzk1MDUtcGRmLWludm9pY2U/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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: 86552
- Thank you received: 14304
-
-

11 years 3 months ago [\#209585](#209585) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PDF invoice](/forum/4-how-to/9505-pdf-invoice?start=20#209585 "Hi!  Is it possible to attach the invoice as a PDF instead of HTML to the confirmation mail send to a customer after an order is created?  Best regards")*

Hi,

That's a screenshot of the product page, not of the settings of the custom field, which is what I asked.
But based on your screenshot, I can confirm that it is a custom item field, and they are automatically displayed on the invoice, as long as you have a recent enough version of the PDF invoice plugin (less than a year) and that you have the "backend listing" setting of your field turned on.
So please check on that.

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

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

- **[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")**
- [![huwhuw's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35272.jpg)](/forum/user/35272-huwhuw "View huwhuw's Profile")
- [ Offline](/forum/user/35272-huwhuw)

Less More

- Posts: 84
- Thank you received: 9
-
-

11 years 3 months ago [\#209599](#209599) by [huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")  Replied by *[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")* on topic *[PDF invoice](/forum/4-how-to/9505-pdf-invoice?start=20#209599 "Hi!  Is it possible to attach the invoice as a PDF instead of HTML to the confirmation mail send to a customer after an order is created?  Best regards")*

Thanks Nicolas - the issue was the "backend listing" setting of the field was turned off.
Great support

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

11 years 2 months ago -  11 years 2 months ago [\#213782](#213782) by [fab966](/forum/user/37979-fab966 "View fab966's Profile")  Replied by *[fab966](/forum/user/37979-fab966 "View fab966's Profile")* on topic *[PDF invoice](/forum/4-how-to/9505-pdf-invoice?start=20#213782 "Hi!  Is it possible to attach the invoice as a PDF instead of HTML to the confirmation mail send to a customer after an order is created?  Best regards")*

Hi all,
I need to show a Custom Filed too in the PDF Invoice, but I can't get it.
I've tried all I saw in this post but it not works.

I need to show a Custom Field called for example "VAT id" in the Attached PDF Invoice.
This is a legal requirement on Italian Invoices.

I set a new Custom Field with HikaShop Admin (Display -&gt; Custom Fields):

Label: Codice Fiscale
Table: address (i need it with address infos of the customer)
Column Name: cod_fiscale
Field type: Text
Display: everywhere (Front-End, Back-End Form, Back-end Listing) and it is all green.
(See attached jpg)

I get no Custom Field in the PDF attached Invoice...
(See attached jpg)

I tried to write some new class instances in plugins/hikashop/attachinvoice/attachinvoice/invoice.php like this:
Code:

echo "&lt;br /&gt;Codice Fiscale" . $addressClass-&gt;displayAddress($order-&gt;fields-&gt;cod_fiscale,$order-&gt;$oneAddress-&gt;cod_fiscale,$view); .... echo $class-&gt;displayAddress($this-&gt;element-&gt;fields,$this-&gt;element-&gt;billing_address,'order'); .... echo "&lt;br /&gt;" . $addressClass-&gt;displayAddress($this-&gt;element-&gt;fields,$this-&gt;element-&gt;billing_address,'order');

without any success...
I see on PDF only the text parts of echo: "Codice fiscale: " and nothing more.

Why I have no custom field in the PDF Attached Invoice?
How can I write a correct class instance to get my custom field on PDF?
Did I forget something?

I read here that

> ...I can confirm that it is a custom item field, and they are automatically displayed on the invoice, as long as you have a recent enough version of the PDF invoice plugin (less than a year) and that you have the "backend listing" setting of your field turned on.

But it doesn't works.

Thank in advance for your help.
Best regards.
Fabrizio

Joomla 3.4.3
HikaShop Essential 2.5.0
PLG PDF Attached Invoice: No version showed in Joomla Plugin manager! (but I bought it three weeks ago)

- [ ![conf-cod-fiscale.jpg](/forum/attachment/26379) ](/forum/attachment/26379 "...od-fiscale.jpg") [ ](/forum/attachment/26379?download=1 "...od-fiscale.jpg")
- [ ![pdf-cod-fiscale.jpg](/forum/attachment/26380) ](/forum/attachment/26380 "...od-fiscale.jpg") [ ](/forum/attachment/26380?download=1 "...od-fiscale.jpg")

Last edit: 11 years 2 months ago by [fab966](/forum/user/37979-fab966 "View fab966's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzk1MDUtcGRmLWludm9pY2U/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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: 86552
- Thank you received: 14304
-
-

11 years 2 months ago [\#213819](#213819) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PDF invoice](/forum/4-how-to/9505-pdf-invoice?start=20#213819 "Hi!  Is it possible to attach the invoice as a PDF instead of HTML to the confirmation mail send to a customer after an order is created?  Best regards")*

Hi,

You're looking at the wrong place.
What you need to do is to edit the file "address_template" for both your frontend and backend template via the menu Display&gt;Views.
There, simply add the tag corresponding to your custom address field: {cod_fiscale}

That's it. No need to modify the PDF invoice plugin or add PHP code.

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

11 years 2 months ago [\#213887](#213887) by [fab966](/forum/user/37979-fab966 "View fab966's Profile")  Replied by *[fab966](/forum/user/37979-fab966 "View fab966's Profile")* on topic *[PDF invoice](/forum/4-how-to/9505-pdf-invoice?start=20#213887 "Hi!  Is it possible to attach the invoice as a PDF instead of HTML to the confirmation mail send to a customer after an order is created?  Best regards")*

Thank you for the answer,
I'll try it as soon as is possible and I'll give you a feedback.

Best regards.
Fabrizio

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

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

Less More

- Posts: 251
- Thank you received: 2
-
-

11 years 1 month ago [\#215417](#215417) by [Nello](/forum/user/1361-nello "View Nello's Profile")  Replied by *[Nello](/forum/user/1361-nello "View Nello's Profile")* on topic *[PDF invoice](/forum/4-how-to/9505-pdf-invoice?start=20#215417 "Hi!  Is it possible to attach the invoice as a PDF instead of HTML to the confirmation mail send to a customer after an order is created?  Best regards")*

Hi,
I edited the file "address_template" and I get my custom field, but I get it in both addresses: billing and shipping. Is there a possibility to get it only for the billing address?

Thank you

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

11 years 1 month ago [\#215419](#215419) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[PDF invoice](/forum/4-how-to/9505-pdf-invoice?start=20#215419 "Hi!  Is it possible to attach the invoice as a PDF instead of HTML to the confirmation mail send to a customer after an order is created?  Best regards")*

Hi,

Not in the PDF invoice context.
The function "displayAddress" in the HikaShop address class does not have any parameter to indicate for the kind of address to display.
So the best will be to copy that function directly in your invoice override to not load the "address_template" but to specify an hard coded template.
Thanks to that, you can specify different template for the shipping and the billing.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

11 years 1 month ago [\#216280](#216280) by [fab966](/forum/user/37979-fab966 "View fab966's Profile")  Replied by *[fab966](/forum/user/37979-fab966 "View fab966's Profile")* on topic *[PDF invoice](/forum/4-how-to/9505-pdf-invoice?start=20#216280 "Hi!  Is it possible to attach the invoice as a PDF instead of HTML to the confirmation mail send to a customer after an order is created?  Best regards")*

Hi all,
with your help I get now my custom field (Codice Fiscale) on the attached PDF invoice too.
Thanks a lot.
BUT...
I don't understand why I get it only by the FIRST print of the Invoice from Order List Page button.
If the Administrator need to print a second time the PDF from Order List Page the custom field and his value disappears !!!
Is there a difference between the first and the following PRINT actions?

Thanks in advance.
Best regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzk1MDUtcGRmLWludm9pY2U/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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: 86552
- Thank you received: 14304
-
-

11 years 1 month ago [\#216287](#216287) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PDF invoice](/forum/4-how-to/9505-pdf-invoice?start=20#216287 "Hi!  Is it possible to attach the invoice as a PDF instead of HTML to the confirmation mail send to a customer after an order is created?  Best regards")*

Hi,

The PDF generating process is the same the first time and the second time and the times after.
So it probably means that the value of the custom field in the order has been changed. Either by the custom code you added, or a mass action (menu System&gt;Mass actions) or some other kind of customization.
Hard to say exactly as we don't know what changes you made or if you're using mass actions at all, etc.

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

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