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

#   Add custom field to PDF invoice

##

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

Less More

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

11 years 2 months ago [\#215353](#215353) by [Nello](/forum/user/1361-nello "View Nello's Profile")  *[Add custom field to PDF invoice](/forum/35-orders-management/879485-add-custom-field-to-pdf-invoice#215353 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3  Hi, I created a custom field to get VAT number from my client. It appears correctly in the registration form and also in the order's administration, but it not appear in the PDF invoice within the invoice address and shipping address.  How can i add this field? Thank you so much.")* was created by *[Nello](/forum/user/1361-nello "View Nello's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.3

Hi,
I created a custom field to get VAT number from my client. It appears correctly in the registration form and also in the order's administration, but it not appear in the PDF invoice within the invoice address and shipping address.

How can i add this field?
Thank you so much.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3OTQ4NS1hZGQtY3VzdG9tLWZpZWxkLXRvLXBkZi1pbnZvaWNlP3RtcGw9bWFya2Rvd24=) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 2 months ago [\#215355](#215355) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Add custom field to PDF invoice](/forum/35-orders-management/879485-add-custom-field-to-pdf-invoice#215355 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3  Hi, I created a custom field to get VAT number from my client. It appears correctly in the registration form and also in the order's administration, but it not appear in the PDF invoice within the invoice address and shipping address.  How can i add this field? Thank you so much.")*

Hi,

To customize the PDF invoice, you need to modify directly the plugin or create an internal file for override.
See : [ www.hikashop.com/forum/4-how-to/879392-t...f-plugin.html#214817](http://www.hikashop.com/forum/4-how-to/879392-to-changes-in-invoice-pdf-plugin.html#214817)

Regards,

---

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

The following user(s) said Thank You: [Nello](/forum/user/1361-nello "View Nello's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3OTQ4NS1hZGQtY3VzdG9tLWZpZWxkLXRvLXBkZi1pbnZvaWNlP3RtcGw9bWFya2Rvd24=) 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") Topic Author
- [ Offline](/forum/user/1361-nello)

Less More

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

11 years 2 months ago [\#215416](#215416) by [Nello](/forum/user/1361-nello "View Nello's Profile")  Replied by *[Nello](/forum/user/1361-nello "View Nello's Profile")* on topic *[Add custom field to PDF invoice](/forum/35-orders-management/879485-add-custom-field-to-pdf-invoice#215416 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3  Hi, I created a custom field to get VAT number from my client. It appears correctly in the registration form and also in the order's administration, but it not appear in the PDF invoice within the invoice address and shipping address.  How can i add this field? Thank you so much.")*

Hi,
i'm sorry but I don't know how to get the value of field "address_vat" from the table "address" in the invoice.php file.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3OTQ4NS1hZGQtY3VzdG9tLWZpZWxkLXRvLXBkZi1pbnZvaWNlP3RtcGw9bWFya2Rvd24=) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 2 months ago [\#215418](#215418) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Add custom field to PDF invoice](/forum/35-orders-management/879485-add-custom-field-to-pdf-invoice#215418 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3  Hi, I created a custom field to get VAT number from my client. It appears correctly in the registration form and also in the order's administration, but it not appear in the PDF invoice within the invoice address and shipping address.  How can i add this field? Thank you so much.")*

Hi,

It looks like you managed to do that:
[ www.hikashop.com/forum/4-how-to/9505-pdf...html?start=20#215417](http://www.hikashop.com/forum/4-how-to/9505-pdf-invoice.html?start=20#215417)

Regards,

---

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

The following user(s) said Thank You: [Nello](/forum/user/1361-nello "View Nello's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3OTQ4NS1hZGQtY3VzdG9tLWZpZWxkLXRvLXBkZi1pbnZvaWNlP3RtcGw9bWFya2Rvd24=) 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") Topic Author
- [ Offline](/forum/user/1361-nello)

Less More

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

11 years 2 months ago -  11 years 2 months ago [\#215467](#215467) by [Nello](/forum/user/1361-nello "View Nello's Profile")  Replied by *[Nello](/forum/user/1361-nello "View Nello's Profile")* on topic *[Add custom field to PDF invoice](/forum/35-orders-management/879485-add-custom-field-to-pdf-invoice#215467 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3  Hi, I created a custom field to get VAT number from my client. It appears correctly in the registration form and also in the order's administration, but it not appear in the PDF invoice within the invoice address and shipping address.  How can i add this field? Thank you so much.")*

I solved editing the plugin invoice.php as below Code:

&lt;table class="addresses"&gt; &lt;tr&gt; &lt;?php $addresses = array('billing_address','shipping_address'); foreach($addresses as $oneAddress){ if(empty($order-&gt;$oneAddress)) continue; if ($oneAddress=='shipping_address' &amp;&amp; empty($pluginsShipping)) continue; ?&gt; &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 $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; &lt;?php } ?&gt; &lt;/tr&gt; &lt;/table&gt;

So, I can have all the fiscal fields needed in my invoice, but not in the shipping note.

Thank you.

Last edit: 11 years 2 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: [code] is nice

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

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