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

#   address2 and custom field (address3) not on invoic

##

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

Less More

- Posts: 20
- Thank you received: 0
-
-

14 years 1 month ago [\#69014](#69014) by [ronsnijder](/forum/user/9658-ronsnijder "View ronsnijder's Profile")  *[address2 and custom field (address3) not on invoic](/forum/4-how-to/69014-address2-and-custom-field-address3-not-on-invoic#69014 "Hi,  I am new to Hikashop and I am trying to change some things for my customer. They want to have the address fields seperated in:  address1 - streetname address2 - housenumber address3 - housenumber suffix  I have added address3 as a custom field, which is displayed correctly in the order overview in Hikashop.  I am using PDF invoice, and there both address2 and address3 are not shown  I am not familiar with PHP and I am new to Hikashop. Could somebody help me solving this issue?  I am using Joomla 2.5.7 and Hikashop 1.6.0  Thanxx a lot :-)")* was created by *[ronsnijder](/forum/user/9658-ronsnijder "View ronsnijder's Profile")*

Hi,

I am new to Hikashop and I am trying to change some things for my customer. They want to have the address fields seperated in:

address1 - streetname
address2 - housenumber
address3 - housenumber suffix

I have added address3 as a custom field, which is displayed correctly in the order overview in Hikashop.

[ ![Shipping&#95;and&#95;invoiceaddress.png](/forum/attachment/6157) ](/forum/attachment/6157 "...iceaddress.png")

I am using PDF invoice, and there both address2 and address3 are not shown

[ ![address&#95;on&#95;invoice.png](/forum/attachment/6158) ](/forum/attachment/6158 "...on&#95;invoice.png")

I am not familiar with PHP and I am new to Hikashop. Could somebody help me solving this issue?

I am using Joomla 2.5.7 and Hikashop 1.6.0

Thanxx a lot ![:-)](/media/kunena/emoticons/3.png ":-)")

- [ ![Shipping&#95;and&#95;invoiceaddress.png](/forum/attachment/6157) ](/forum/attachment/6157 "...iceaddress.png") [ ](/forum/attachment/6157?download=1 "...iceaddress.png")
- [ ![address&#95;on&#95;invoice.png](/forum/attachment/6158) ](/forum/attachment/6158 "...on&#95;invoice.png") [ ](/forum/attachment/6158?download=1 "...on&#95;invoice.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY5MDE0LWFkZHJlc3MyLWFuZC1jdXN0b20tZmllbGQtYWRkcmVzczMtbm90LW9uLWludm9pYz90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86578
- Thank you received: 14321
-
-

14 years 1 month ago [\#69021](#69021) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: address2 and custom field (address3) not on invoic](/forum/4-how-to/69014-address2-and-custom-field-address3-not-on-invoic#69021 "Hi,  I am new to Hikashop and I am trying to change some things for my customer. They want to have the address fields seperated in:  address1 - streetname address2 - housenumber address3 - housenumber suffix  I have added address3 as a custom field, which is displayed correctly in the order overview in Hikashop.  I am using PDF invoice, and there both address2 and address3 are not shown  I am not familiar with PHP and I am new to Hikashop. Could somebody help me solving this issue?  I am using Joomla 2.5.7 and Hikashop 1.6.0  Thanxx a lot :-)")*

Hi,

You will have to edit the file plugins/hikashop/attachinvoice/attachinvoice/invoice.php and change the code displaying the address.

Here is the code you want to change: Code:

&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;

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

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

Less More

- Posts: 20
- Thank you received: 0
-
-

14 years 1 month ago [\#69043](#69043) by [ronsnijder](/forum/user/9658-ronsnijder "View ronsnijder's Profile")  Replied by *[ronsnijder](/forum/user/9658-ronsnijder "View ronsnijder's Profile")* on topic *[Re: address2 and custom field (address3) not on invoic](/forum/4-how-to/69014-address2-and-custom-field-address3-not-on-invoic#69043 "Hi,  I am new to Hikashop and I am trying to change some things for my customer. They want to have the address fields seperated in:  address1 - streetname address2 - housenumber address3 - housenumber suffix  I have added address3 as a custom field, which is displayed correctly in the order overview in Hikashop.  I am using PDF invoice, and there both address2 and address3 are not shown  I am not familiar with PHP and I am new to Hikashop. Could somebody help me solving this issue?  I am using Joomla 2.5.7 and Hikashop 1.6.0  Thanxx a lot :-)")*

Super! Thanxx for the help

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

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

Less More

- Posts: 20
- Thank you received: 0
-
-

14 years 1 month ago [\#69784](#69784) by [ronsnijder](/forum/user/9658-ronsnijder "View ronsnijder's Profile")  Replied by *[ronsnijder](/forum/user/9658-ronsnijder "View ronsnijder's Profile")* on topic *[Re: address2 and custom field (address3) not on invoic](/forum/4-how-to/69014-address2-and-custom-field-address3-not-on-invoic#69784 "Hi,  I am new to Hikashop and I am trying to change some things for my customer. They want to have the address fields seperated in:  address1 - streetname address2 - housenumber address3 - housenumber suffix  I have added address3 as a custom field, which is displayed correctly in the order overview in Hikashop.  I am using PDF invoice, and there both address2 and address3 are not shown  I am not familiar with PHP and I am new to Hikashop. Could somebody help me solving this issue?  I am using Joomla 2.5.7 and Hikashop 1.6.0  Thanxx a lot :-)")*

Hi Nicolas,

With PDF invoice it is working perfectly. But the standard Hikashop Email are missing those extra fields. As I told you before, I don't know PHP that well. Would you please tell me which files I have to change in order to add those extra fields to the standard Hikashop conformation mails?

Thanxx a lot for the help

Ron

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY5MDE0LWFkZHJlc3MyLWFuZC1jdXN0b20tZmllbGQtYWRkcmVzczMtbm90LW9uLWludm9pYz90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86578
- Thank you received: 14321
-
-

14 years 1 month ago [\#69901](#69901) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: address2 and custom field (address3) not on invoic](/forum/4-how-to/69014-address2-and-custom-field-address3-not-on-invoic#69901 "Hi,  I am new to Hikashop and I am trying to change some things for my customer. They want to have the address fields seperated in:  address1 - streetname address2 - housenumber address3 - housenumber suffix  I have added address3 as a custom field, which is displayed correctly in the order overview in Hikashop.  I am using PDF invoice, and there both address2 and address3 are not shown  I am not familiar with PHP and I am new to Hikashop. Could somebody help me solving this issue?  I am using Joomla 2.5.7 and Hikashop 1.6.0  Thanxx a lot :-)")*

Hi,

For the emails, you need to edit the files address_template via the menu Display-&gt;Views. They are even easier to edit than the PDF invoice so it should be easy for you. Just make sure that you edit all of them.

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

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

- **[gasoline](/forum/user/6454-gasoline "View gasoline's Profile")**
- [![gasoline's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6454.jpg)](/forum/user/6454-gasoline "View gasoline's Profile")
- [ Offline](/forum/user/6454-gasoline)
- Still searching ...

Less More

- Posts: 247
- Thank you received: 9
-
-
-
- [](https://gasoline.nl)
-

13 years 4 months ago [\#113981](#113981) by [gasoline](/forum/user/6454-gasoline "View gasoline's Profile")  Replied by *[gasoline](/forum/user/6454-gasoline "View gasoline's Profile")* on topic *[Re: address2 and custom field (address3) not on invoic](/forum/4-how-to/69014-address2-and-custom-field-address3-not-on-invoic#113981 "Hi,  I am new to Hikashop and I am trying to change some things for my customer. They want to have the address fields seperated in:  address1 - streetname address2 - housenumber address3 - housenumber suffix  I have added address3 as a custom field, which is displayed correctly in the order overview in Hikashop.  I am using PDF invoice, and there both address2 and address3 are not shown  I am not familiar with PHP and I am new to Hikashop. Could somebody help me solving this issue?  I am using Joomla 2.5.7 and Hikashop 1.6.0  Thanxx a lot :-)")*

I changed invoice.php, but its not working. Whats wrong?
Code:

&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.' '.$order-&gt;$oneAddress-&gt;address_nr.' '.$order-&gt;$oneAddress-&gt;address_ext.'&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;

This line I changed: Code:

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

---

I'll keep on trying!

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

13 years 4 months ago [\#114056](#114056) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: address2 and custom field (address3) not on invoic](/forum/4-how-to/69014-address2-and-custom-field-address3-not-on-invoic#114056 "Hi,  I am new to Hikashop and I am trying to change some things for my customer. They want to have the address fields seperated in:  address1 - streetname address2 - housenumber address3 - housenumber suffix  I have added address3 as a custom field, which is displayed correctly in the order overview in Hikashop.  I am using PDF invoice, and there both address2 and address3 are not shown  I am not familiar with PHP and I am new to Hikashop. Could somebody help me solving this issue?  I am using Joomla 2.5.7 and Hikashop 1.6.0  Thanxx a lot :-)")*

Hi,

This should work, are you sure that your custom fields have this column name in the menu Display &gt; Custom fields ?
The code seems to be ok.

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

- **[gasoline](/forum/user/6454-gasoline "View gasoline's Profile")**
- [![gasoline's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6454.jpg)](/forum/user/6454-gasoline "View gasoline's Profile")
- [ Offline](/forum/user/6454-gasoline)
- Still searching ...

Less More

- Posts: 247
- Thank you received: 9
-
-
-
- [](https://gasoline.nl)
-

13 years 4 months ago [\#114107](#114107) by [gasoline](/forum/user/6454-gasoline "View gasoline's Profile")  Replied by *[gasoline](/forum/user/6454-gasoline "View gasoline's Profile")* on topic *[Re: address2 and custom field (address3) not on invoic](/forum/4-how-to/69014-address2-and-custom-field-address3-not-on-invoic#114107 "Hi,  I am new to Hikashop and I am trying to change some things for my customer. They want to have the address fields seperated in:  address1 - streetname address2 - housenumber address3 - housenumber suffix  I have added address3 as a custom field, which is displayed correctly in the order overview in Hikashop.  I am using PDF invoice, and there both address2 and address3 are not shown  I am not familiar with PHP and I am new to Hikashop. Could somebody help me solving this issue?  I am using Joomla 2.5.7 and Hikashop 1.6.0  Thanxx a lot :-)")*

Stupid me, I made typo :blush:
Now its working, Thanks.

---

I'll keep on trying!

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

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