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

#   Customization of address data in My account, Email and Receipt

##

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

Less More

- Posts: 91
- Thank you received: 5
-
-

5 years 11 months ago [\#327395](#327395) by [bolando](/forum/user/38611-bolando "View bolando's Profile")  *[Customization of address data in My account, Email and Receipt](/forum/27-checkout/901511-customization-of-address-data-in-my-account-email-and-receipt#327395 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3.24 -- Browser(s) name and version -- : Chrome 87  Hello,  I edited address template in /templates/my&#95;template/html/com&#95;hikashop/address/address&#95;template.php and I see it applies to frontend, like My Account page. I also edited it in /administrator/templates/isis/html/com&#95;hikashop/order/address&#95;template.php and it applies to Email sent to customer or admin.  How can I make a difference for Payment address and Shipment address? For example my Payment address would be  and Shipment address  So the last line changes.  Thanks")* was created by *[bolando](/forum/user/38611-bolando "View bolando's Profile")*

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.23
-- PHP version -- : 7.3.24
-- Browser(s) name and version -- : Chrome 87

Hello,

I edited address template in
/templates/my_template/html/com_hikashop/address/address_template.php
and I see it applies to frontend, like My Account page.
I also edited it in
/administrator/templates/isis/html/com_hikashop/order/address_template.php
and it applies to Email sent to customer or admin.

How can I make a difference for Payment address and Shipment address?
For example my Payment address would be Code:

{address_company} {address_firstname} {address_lastname} {address_street} {address_post_code} {address_city} {tax_number}

and Shipment address Code:

{address_company} {address_firstname} {address_lastname} {address_street} {address_post_code} {address_city} {address_telephone}

So the last line changes.

Thanks

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

5 years 11 months ago [\#327397](#327397) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Customization of address data in My account, Email and Receipt](/forum/27-checkout/901511-customization-of-address-data-in-my-account-email-and-receipt#327397 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3.24 -- Browser(s) name and version -- : Chrome 87  Hello,  I edited address template in /templates/my&#95;template/html/com&#95;hikashop/address/address&#95;template.php and I see it applies to frontend, like My Account page. I also edited it in /administrator/templates/isis/html/com&#95;hikashop/order/address&#95;template.php and it applies to Email sent to customer or admin.  How can I make a difference for Payment address and Shipment address? For example my Payment address would be  and Shipment address  So the last line changes.  Thanks")*

Hi,

Well, you can restrict the custom address fields to only shipping and only billing via the Display&gt;Custom fields menu.
So if you do that, then you can just do like this: Code:

{address_company} {address_firstname} {address_lastname} {address_street} {address_post_code} {address_city} {tax_number}{address_telephone}

That way, since either of the field will be empty on the last line, you'll only get the remaining field displayed.
Now if you want to keep the fields in each type of address but only change the display, it will require some PHP coding. Code:

{address_company} {address_firstname} {address_lastname} {address_street} {address_post_code} {address_city} &lt;?php if($this-&gt;address-&gt;address_type=='billing')){ echo '{tax_number}'; }else{ echo '{address_telephone}'; } ?&gt;

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

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

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

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

5 years 11 months ago [\#327403](#327403) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[Customization of address data in My account, Email and Receipt](/forum/27-checkout/901511-customization-of-address-data-in-my-account-email-and-receipt#327403 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3.24 -- Browser(s) name and version -- : Chrome 87  Hello,  I edited address template in /templates/my&#95;template/html/com&#95;hikashop/address/address&#95;template.php and I see it applies to frontend, like My Account page. I also edited it in /administrator/templates/isis/html/com&#95;hikashop/order/address&#95;template.php and it applies to Email sent to customer or admin.  How can I make a difference for Payment address and Shipment address? For example my Payment address would be  and Shipment address  So the last line changes.  Thanks")*

Hi,

Typo: one closing bracket too many. Code:

&lt;?php if($this-&gt;address-&gt;address_type=='billing')){ echo '{tax_number}'; }else{ echo '{address_telephone}'; } ?&gt;

must instead be Code:

&lt;?php if($this-&gt;address-&gt;address_type=='billing'){ echo '{tax_number}'; }else{ echo '{address_telephone}'; } ?&gt;

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile"), [bolando](/forum/user/38611-bolando "View bolando's Profile")

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

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

Less More

- Posts: 91
- Thank you received: 5
-
-

5 years 11 months ago [\#327458](#327458) by [bolando](/forum/user/38611-bolando "View bolando's Profile")  Replied by *[bolando](/forum/user/38611-bolando "View bolando's Profile")* on topic *[Customization of address data in My account, Email and Receipt](/forum/27-checkout/901511-customization-of-address-data-in-my-account-email-and-receipt#327458 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3.24 -- Browser(s) name and version -- : Chrome 87  Hello,  I edited address template in /templates/my&#95;template/html/com&#95;hikashop/address/address&#95;template.php and I see it applies to frontend, like My Account page. I also edited it in /administrator/templates/isis/html/com&#95;hikashop/order/address&#95;template.php and it applies to Email sent to customer or admin.  How can I make a difference for Payment address and Shipment address? For example my Payment address would be  and Shipment address  So the last line changes.  Thanks")*

Hello,

Thanks, it helped me a lot.

Now I want to customize addresses in My account user panel.
1) In short address (one-line) I would like to have different fields for shipment and payment address. Tax number is important for payment, but not fir shipment. Is it possible?
2) How can I add phone to be visible in the Shipment long address (multi-line)? In my Hika settings I set phone only as a shipment field.
3) When I edit shipment address, I can't save it because it tells me I should fill in Phone, but the field is not visible there (see attachment). And tax number should not be displayed here (in Hika settings it's only for payment address).

Please help.

- [ ![addresses.png](/forum/attachment/51441) ](/forum/attachment/51441 "addresses.png") [ ](/forum/attachment/51441?download=1 "addresses.png")
- [ ![error.png](/forum/attachment/51442) ](/forum/attachment/51442 "error.png") [ ](/forum/attachment/51442?download=1 "error.png")

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

5 years 11 months ago [\#327468](#327468) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Customization of address data in My account, Email and Receipt](/forum/27-checkout/901511-customization-of-address-data-in-my-account-email-and-receipt#327468 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3.24 -- Browser(s) name and version -- : Chrome 87  Hello,  I edited address template in /templates/my&#95;template/html/com&#95;hikashop/address/address&#95;template.php and I see it applies to frontend, like My Account page. I also edited it in /administrator/templates/isis/html/com&#95;hikashop/order/address&#95;template.php and it applies to Email sent to customer or admin.  How can I make a difference for Payment address and Shipment address? For example my Payment address would be  and Shipment address  So the last line changes.  Thanks")*

Hi,

1. The mini format doesn't support PHP code. So you can't have different tags for different types of address in it.
I would recommend just not adding the tags for these fields. The goal of this address format is to have a small preview of the address for the customer when he chooses an address so you don't necessarily need all the information of the address in it.

2. The code I provided and lousyfool corrected will only display the address telephone for the shipping address. So this should already answer your question.

3. Could you provide a screenshot of the settings of both of these custom fields please ?

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

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

Less More

- Posts: 91
- Thank you received: 5
-
-

5 years 11 months ago [\#327495](#327495) by [bolando](/forum/user/38611-bolando "View bolando's Profile")  Replied by *[bolando](/forum/user/38611-bolando "View bolando's Profile")* on topic *[Customization of address data in My account, Email and Receipt](/forum/27-checkout/901511-customization-of-address-data-in-my-account-email-and-receipt#327495 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3.24 -- Browser(s) name and version -- : Chrome 87  Hello,  I edited address template in /templates/my&#95;template/html/com&#95;hikashop/address/address&#95;template.php and I see it applies to frontend, like My Account page. I also edited it in /administrator/templates/isis/html/com&#95;hikashop/order/address&#95;template.php and it applies to Email sent to customer or admin.  How can I make a difference for Payment address and Shipment address? For example my Payment address would be  and Shipment address  So the last line changes.  Thanks")*

Hello,

Thanks for your answer.

1) OK, I will tell it to the shop owner.
2) The code you provided works fine for HTML order summary in the front end for the customer
(URL: order/show/cid-18/cancel_url-aHR0cHM6Ly9zdGFsc2hvcC5wbC9tb2plLWtvbnRv), but not in the multi-line version address ready to be edited (URL: address)
My current code is Code:

&lt;?php defined('_JEXEC') or die('Restricted access'); ?&gt; {address_company} {address_street} {address_post_code} {address_city} &lt;?php if($this-&gt;address-&gt;address_type=='billing'):?&gt;&lt;?php if(!empty($this-&gt;address-&gt;nip)) echo JText::sprintf('NIP_NUMER','{nip}');?&gt;&lt;?php else:?&gt;&lt;?php if(!empty($this-&gt;address-&gt;address_telephone)) echo JText::sprintf('TELEPHONE_IN_ADDRESS','{address_telephone}');?&gt;&lt;?php endif;?&gt;

Somehow the if clauses not work (return always false).

3) I attach the settings.

- [ ![tax-field.png](/forum/attachment/51447) ](/forum/attachment/51447 "tax-field.png") [ ](/forum/attachment/51447?download=1 "tax-field.png")
- [ ![phone-field.png](/forum/attachment/51448) ](/forum/attachment/51448 "phone-field.png") [ ](/forum/attachment/51448?download=1 "phone-field.png")

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

5 years 11 months ago [\#327514](#327514) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Customization of address data in My account, Email and Receipt](/forum/27-checkout/901511-customization-of-address-data-in-my-account-email-and-receipt#327514 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3.24 -- Browser(s) name and version -- : Chrome 87  Hello,  I edited address template in /templates/my&#95;template/html/com&#95;hikashop/address/address&#95;template.php and I see it applies to frontend, like My Account page. I also edited it in /administrator/templates/isis/html/com&#95;hikashop/order/address&#95;template.php and it applies to Email sent to customer or admin.  How can I make a difference for Payment address and Shipment address? For example my Payment address would be  and Shipment address  So the last line changes.  Thanks")*

Hi,

2.
Change the code: Code:

$params = null;

to:
Code:

$params = new HikaParameter(''); $params-&gt;set('address', $address);

in the file administrator/components/com_hikashop/classes/address.php and it should fix that problem.

3.
Change the line: Code:

$update_url = 'address&amp;task=edit&amp;cid='.(int)@$this-&gt;address-&gt;address_id;

to: Code:

$update_url = 'address&amp;task=edit&amp;cid='.(int)@$this-&gt;address-&gt;address_id.'&amp;address_type='.$this-&gt;address-&gt;address_type;

in the file components/com_hikashop/views/address/tmpl/show.php and it will fix the problem.

Please report back on this so that we can confirm the patches and add them for the next version.

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

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

Less More

- Posts: 91
- Thank you received: 5
-
-

5 years 11 months ago [\#327529](#327529) by [bolando](/forum/user/38611-bolando "View bolando's Profile")  Replied by *[bolando](/forum/user/38611-bolando "View bolando's Profile")* on topic *[Customization of address data in My account, Email and Receipt](/forum/27-checkout/901511-customization-of-address-data-in-my-account-email-and-receipt#327529 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3.24 -- Browser(s) name and version -- : Chrome 87  Hello,  I edited address template in /templates/my&#95;template/html/com&#95;hikashop/address/address&#95;template.php and I see it applies to frontend, like My Account page. I also edited it in /administrator/templates/isis/html/com&#95;hikashop/order/address&#95;template.php and it applies to Email sent to customer or admin.  How can I make a difference for Payment address and Shipment address? For example my Payment address would be  and Shipment address  So the last line changes.  Thanks")*

Hello,

Thanks for great support.
I applied the changes

2) Tax field already appears in the Payment address, but Telephone is not visible in Shipment address, and empty NIP (tax field) is there. I attach a screenshot.
3) It helped, thanks once again.

- [ ![addresses&#95;2020-12-17.png](/forum/attachment/51458) ](/forum/attachment/51458 "...2020-12-17.png") [ ](/forum/attachment/51458?download=1 "...2020-12-17.png")

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

5 years 11 months ago -  5 years 11 months ago [\#327533](#327533) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Customization of address data in My account, Email and Receipt](/forum/27-checkout/901511-customization-of-address-data-in-my-account-email-and-receipt#327533 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3.24 -- Browser(s) name and version -- : Chrome 87  Hello,  I edited address template in /templates/my&#95;template/html/com&#95;hikashop/address/address&#95;template.php and I see it applies to frontend, like My Account page. I also edited it in /administrator/templates/isis/html/com&#95;hikashop/order/address&#95;template.php and it applies to Email sent to customer or admin.  How can I make a difference for Payment address and Shipment address? For example my Payment address would be  and Shipment address  So the last line changes.  Thanks")*

Hello,

Sorry if I don't understand you well, but after processing some tests on your website, and was able to use your telephone field in your shipping address, see my screenshot :
[ ![alt](https://i.ibb.co/n8TGfH9/ship-addr.png) ](https://i.ibb.co/n8TGfH9/ship-addr.png "alt")

If there a misunderstood can you describe more the recurrent issue in your Shipping address (from checkout)
Regards

Last edit: 5 years 11 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 91
- Thank you received: 5
-
-

5 years 11 months ago [\#327568](#327568) by [bolando](/forum/user/38611-bolando "View bolando's Profile")  Replied by *[bolando](/forum/user/38611-bolando "View bolando's Profile")* on topic *[Customization of address data in My account, Email and Receipt](/forum/27-checkout/901511-customization-of-address-data-in-my-account-email-and-receipt#327568 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3.24 -- Browser(s) name and version -- : Chrome 87  Hello,  I edited address template in /templates/my&#95;template/html/com&#95;hikashop/address/address&#95;template.php and I see it applies to frontend, like My Account page. I also edited it in /administrator/templates/isis/html/com&#95;hikashop/order/address&#95;template.php and it applies to Email sent to customer or admin.  How can I make a difference for Payment address and Shipment address? For example my Payment address would be  and Shipment address  So the last line changes.  Thanks")*

Hello Phillip,

Thanks, this issue has been already resolved.
Now I would like to have the phone visible before editing the shipment address. I attach a screenshot.

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

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

5 years 11 months ago -  5 years 11 months ago [\#327573](#327573) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Customization of address data in My account, Email and Receipt](/forum/27-checkout/901511-customization-of-address-data-in-my-account-email-and-receipt#327573 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3.24 -- Browser(s) name and version -- : Chrome 87  Hello,  I edited address template in /templates/my&#95;template/html/com&#95;hikashop/address/address&#95;template.php and I see it applies to frontend, like My Account page. I also edited it in /administrator/templates/isis/html/com&#95;hikashop/order/address&#95;template.php and it applies to Email sent to customer or admin.  How can I make a difference for Payment address and Shipment address? For example my Payment address would be  and Shipment address  So the last line changes.  Thanks")*

Hello,

I read the whole thread and so far, hard to tell what's didn't work after all this customization.
Provide via our **[ Contact us](https://www.hikashop.com/support/contact-us.html)** form some **backend references** (with full access), and don't forget to add an **Url link to this topic** in your message.

Awaiting your references to progress.
Regards

Last edit: 5 years 11 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 91
- Thank you received: 5
-
-

5 years 11 months ago [\#327662](#327662) by [bolando](/forum/user/38611-bolando "View bolando's Profile")  Replied by *[bolando](/forum/user/38611-bolando "View bolando's Profile")* on topic *[Customization of address data in My account, Email and Receipt](/forum/27-checkout/901511-customization-of-address-data-in-my-account-email-and-receipt#327662 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3.24 -- Browser(s) name and version -- : Chrome 87  Hello,  I edited address template in /templates/my&#95;template/html/com&#95;hikashop/address/address&#95;template.php and I see it applies to frontend, like My Account page. I also edited it in /administrator/templates/isis/html/com&#95;hikashop/order/address&#95;template.php and it applies to Email sent to customer or admin.  How can I make a difference for Payment address and Shipment address? For example my Payment address would be  and Shipment address  So the last line changes.  Thanks")*

Hello,
Did you receive my backend references? I sent them on Friday evening via [ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)

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

5 years 11 months ago [\#327671](#327671) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Customization of address data in My account, Email and Receipt](/forum/27-checkout/901511-customization-of-address-data-in-my-account-email-and-receipt#327671 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3.24 -- Browser(s) name and version -- : Chrome 87  Hello,  I edited address template in /templates/my&#95;template/html/com&#95;hikashop/address/address&#95;template.php and I see it applies to frontend, like My Account page. I also edited it in /administrator/templates/isis/html/com&#95;hikashop/order/address&#95;template.php and it applies to Email sent to customer or admin.  How can I make a difference for Payment address and Shipment address? For example my Payment address would be  and Shipment address  So the last line changes.  Thanks")*

Hi,

Well, the problem is with your custom code in the "address format" setting.
You had a check $this-&gt;address-&gt;address_type=='shipment' in there but there is no such address_type in HikaShop.
I've fixed up your code and simplified it: Code:

&lt;?php if($this-&gt;address-&gt;address_type=='billing' &amp;&amp; !empty($this-&gt;address-&gt;nip)) echo JText::sprintf('NIP_NUMER','{nip}');?&gt; &lt;?php if($this-&gt;address-&gt;address_type=='shipping' &amp;&amp; !empty($this-&gt;address-&gt;address_telephone)) echo JText::sprintf('TELEPHONE_IN_ADDRESS','{address_telephone}');?&gt;

It now works fine as far as I can see:
[ monosnap.com/file/pwm9mRooR74UiCx2VyhAVzskiYdeYl](https://monosnap.com/file/pwm9mRooR74UiCx2VyhAVzskiYdeYl)

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

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

Less More

- Posts: 91
- Thank you received: 5
-
-

5 years 11 months ago [\#327688](#327688) by [bolando](/forum/user/38611-bolando "View bolando's Profile")  Replied by *[bolando](/forum/user/38611-bolando "View bolando's Profile")* on topic *[Customization of address data in My account, Email and Receipt](/forum/27-checkout/901511-customization-of-address-data-in-my-account-email-and-receipt#327688 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3.24 -- Browser(s) name and version -- : Chrome 87  Hello,  I edited address template in /templates/my&#95;template/html/com&#95;hikashop/address/address&#95;template.php and I see it applies to frontend, like My Account page. I also edited it in /administrator/templates/isis/html/com&#95;hikashop/order/address&#95;template.php and it applies to Email sent to customer or admin.  How can I make a difference for Payment address and Shipment address? For example my Payment address would be  and Shipment address  So the last line changes.  Thanks")*

Thank you for your help. I am afraid in this view: moje-konto/address it's still the same. I attach a screenshot.
How can I fix it?

Just to know: are such thing like address type checks described somewhere in the documentation or I should ask here in the forum about the syntax?

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

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

5 years 11 months ago [\#327714](#327714) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Customization of address data in My account, Email and Receipt](/forum/27-checkout/901511-customization-of-address-data-in-my-account-email-and-receipt#327714 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3.24 -- Browser(s) name and version -- : Chrome 87  Hello,  I edited address template in /templates/my&#95;template/html/com&#95;hikashop/address/address&#95;template.php and I see it applies to frontend, like My Account page. I also edited it in /administrator/templates/isis/html/com&#95;hikashop/order/address&#95;template.php and it applies to Email sent to customer or admin.  How can I make a difference for Payment address and Shipment address? For example my Payment address would be  and Shipment address  So the last line changes.  Thanks")*

Hi,

I had a look at it and there was a problem with the caching of the address template which prevented the display of different address formats on that view.
I've added a patch to fix that on your website and we'll also add it on our end for the next version of HikaShop.

There is no documentation for advanced address format customization like what you're trying to do.
For simple customization, the documentation of the "address format" setting on the configuration documentation page is enough:
[ www.hikashop.com/support/documentation/5...ml#checkout\_shipping](https://www.hikashop.com/support/documentation/54-hikashop-config.html#checkout_shipping)

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

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

Less More

- Posts: 91
- Thank you received: 5
-
-

5 years 11 months ago [\#327722](#327722) by [bolando](/forum/user/38611-bolando "View bolando's Profile")  Replied by *[bolando](/forum/user/38611-bolando "View bolando's Profile")* on topic *[Customization of address data in My account, Email and Receipt](/forum/27-checkout/901511-customization-of-address-data-in-my-account-email-and-receipt#327722 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.3.24 -- Browser(s) name and version -- : Chrome 87  Hello,  I edited address template in /templates/my&#95;template/html/com&#95;hikashop/address/address&#95;template.php and I see it applies to frontend, like My Account page. I also edited it in /administrator/templates/isis/html/com&#95;hikashop/order/address&#95;template.php and it applies to Email sent to customer or admin.  How can I make a difference for Payment address and Shipment address? For example my Payment address would be  and Shipment address  So the last line changes.  Thanks")*

Thank you, now it works!
OK, so I will always ask here on a forum when starting some advanced customization.

Happy Christmas Time!

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

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