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

#   Enclose VAT number in email notification

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

12 years 8 months ago [\#144734](#144734) by [mv](/forum/user/31253-mv "View mv's Profile")  *[Enclose VAT number in email notification](/forum/35-orders-management/866016-enclose-vat-number-in-email-notification#144734 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hello,  one of the &quot;custom field&quot; I use for the customer registration is the VAT number. I would like it to appear in the email notification sent to the customer and to me after payment.  How is that possible ? Thanks in advance Best regards Morgan")* was created by *[mv](/forum/user/31253-mv "View mv's Profile")*

-- url of the page with the problem -- : [ mywebsite.com/mypage](http://mywebsite.com/mypage)
-- HikaShop version -- : x.x.x
-- Joomla version -- : x.x
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hello,

one of the "custom field" I use for the customer registration is the VAT number.
I would like it to appear in the email notification sent to the customer and to me after payment.

How is that possible ?
Thanks in advance
Best regards
Morgan

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

12 years 8 months ago [\#144777](#144777) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Enclose VAT number in email notification](/forum/35-orders-management/866016-enclose-vat-number-in-email-notification#144777 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hello,  one of the &quot;custom field&quot; I use for the customer registration is the VAT number. I would like it to appear in the email notification sent to the customer and to me after payment.  How is that possible ? Thanks in advance Best regards Morgan")*

Hi Morgan,

It's pretty easy, you just have to add the tag to the email.
Tag can look like {VAR:user.vat}.
Check this topic for more information: [ www.hikashop.com/forum/4-how-to/864797-c...fication.html#139433](http://www.hikashop.com/forum/4-how-to/864797-custom-fields-in-administrator-email-notification.html#139433)

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

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

Less More

- Posts: 2
- Thank you received: 0
-
-

12 years 8 months ago [\#144831](#144831) by [mv](/forum/user/31253-mv "View mv's Profile")  Replied by *[mv](/forum/user/31253-mv "View mv's Profile")* on topic *[Enclose VAT number in email notification](/forum/35-orders-management/866016-enclose-vat-number-in-email-notification#144831 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hello,  one of the &quot;custom field&quot; I use for the customer registration is the VAT number. I would like it to appear in the email notification sent to the customer and to me after payment.  How is that possible ? Thanks in advance Best regards Morgan")*

Hi Eliot,

thank you for the answer.
I've been to System --&gt; Emails but I don't see where I am supposed to add the tag. Is it possible that I don't have the proper version of Hikashop ?

Morgan

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2NjAxNi1lbmNsb3NlLXZhdC1udW1iZXItaW4tZW1haWwtbm90aWZpY2F0aW9uP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

12 years 8 months ago [\#144897](#144897) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Enclose VAT number in email notification](/forum/35-orders-management/866016-enclose-vat-number-in-email-notification#144897 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hello,  one of the &quot;custom field&quot; I use for the customer registration is the VAT number. I would like it to appear in the email notification sent to the customer and to me after payment.  How is that possible ? Thanks in advance Best regards Morgan")*

Hi,

You need to edit the files 'address_template' via the menu Display&gt;Views and add the tag {address_vat} to them. Then you'll see the VAT number in the emails.

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

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

Less More

- Posts: 22
- Thank you received: 0
-
-

6 years 2 months ago [\#323371](#323371) by [dutchaudio](/forum/user/59036-dutchaudio "View dutchaudio's Profile")  Replied by *[dutchaudio](/forum/user/59036-dutchaudio "View dutchaudio's Profile")* on topic *[Enclose VAT number in email notification](/forum/35-orders-management/866016-enclose-vat-number-in-email-notification#323371 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hello,  one of the &quot;custom field&quot; I use for the customer registration is the VAT number. I would like it to appear in the email notification sent to the customer and to me after payment.  How is that possible ? Thanks in advance Best regards Morgan")*

Old topic, I know but I'm having problems with this to work.
The custom field is there, I can see the VAT number when I login to hikashop, but I don't get it into my emails.
Below is what my address / address_template.php looks like, am I doing something wrong here?

&lt;?php
defined('_JEXEC') or die('Restricted access');
?&gt;
{address_company}
{address_title} {address_firstname} {address_lastname}
{address_street}
{address_post_code} {address_city} {address_state}
{address_country}
{address_vat}
&lt;?php echo JText::sprintf('TELEPHONE_IN_ADDRESS','{address_telephone}');?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2NjAxNi1lbmNsb3NlLXZhdC1udW1iZXItaW4tZW1haWwtbm90aWZpY2F0aW9uP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

6 years 2 months ago [\#323380](#323380) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Enclose VAT number in email notification](/forum/35-orders-management/866016-enclose-vat-number-in-email-notification#323380 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hello,  one of the &quot;custom field&quot; I use for the customer registration is the VAT number. I would like it to appear in the email notification sent to the customer and to me after payment.  How is that possible ? Thanks in advance Best regards Morgan")*

Hi,

There are two view files for the address format, one for the backend, and one for the frontend.
So both need to be modified.
However, since a few years back, you now have a setting "address format" understand the checkout tab of the HikaShop configuration.
So you should do the modification there (maybe it's already there) and save the configuration.
That will update / create automatically both view overrides for you and it should hopefully work fine after that.

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

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

Less More

- Posts: 22
- Thank you received: 0
-
-

6 years 2 months ago -  6 years 2 months ago [\#323393](#323393) by [dutchaudio](/forum/user/59036-dutchaudio "View dutchaudio's Profile")  Replied by *[dutchaudio](/forum/user/59036-dutchaudio "View dutchaudio's Profile")* on topic *[Enclose VAT number in email notification](/forum/35-orders-management/866016-enclose-vat-number-in-email-notification#323393 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hello,  one of the &quot;custom field&quot; I use for the customer registration is the VAT number. I would like it to appear in the email notification sent to the customer and to me after payment.  How is that possible ? Thanks in advance Best regards Morgan")*

> nicolas wrote: Hi,
>
> There are two view files for the address format, one for the backend, and one for the frontend.
> So both need to be modified.
> However, since a few years back, you now have a setting "address format" understand the checkout tab of the HikaShop configuration.
> So you should do the modification there (maybe it's already there) and save the configuration.
> That will update / create automatically both view overrides for you and it should hopefully work fine after that.

I checked it again and it's both in the front and backend of the address_template files.
I just see save buttons, no other options and the {address_vat} line is there already.
Am I still missing something? It still doesn't add it to the emails (both customer as admin), but it's there when i check the order/contact in the interface. :huh:

EDIT: I also checked the address format and this is what it looks like.
[ ![addressformat.jpg](/forum/attachment/50413) ](/forum/attachment/50413 "addressformat.jpg")

- [ ![addressformat.jpg](/forum/attachment/50413) ](/forum/attachment/50413 "addressformat.jpg") [ ](/forum/attachment/50413?download=1 "addressformat.jpg")

Last edit: 6 years 2 months ago by [dutchaudio](/forum/user/59036-dutchaudio "View dutchaudio's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2NjAxNi1lbmNsb3NlLXZhdC1udW1iZXItaW4tZW1haWwtbm90aWZpY2F0aW9uP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

6 years 2 months ago [\#323396](#323396) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Enclose VAT number in email notification](/forum/35-orders-management/866016-enclose-vat-number-in-email-notification#323396 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hello,  one of the &quot;custom field&quot; I use for the customer registration is the VAT number. I would like it to appear in the email notification sent to the customer and to me after payment.  How is that possible ? Thanks in advance Best regards Morgan")*

Hi,

Did you click on the save button of the HikaShop configuration page ?
That will update all the the view overrides and make sure that the format is correct everywhere.

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

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

Less More

- Posts: 22
- Thank you received: 0
-
-

6 years 2 months ago [\#323437](#323437) by [dutchaudio](/forum/user/59036-dutchaudio "View dutchaudio's Profile")  Replied by *[dutchaudio](/forum/user/59036-dutchaudio "View dutchaudio's Profile")* on topic *[Enclose VAT number in email notification](/forum/35-orders-management/866016-enclose-vat-number-in-email-notification#323437 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hello,  one of the &quot;custom field&quot; I use for the customer registration is the VAT number. I would like it to appear in the email notification sent to the customer and to me after payment.  How is that possible ? Thanks in advance Best regards Morgan")*

> nicolas wrote: Hi,
>
> Did you click on the save button of the HikaShop configuration page ?
> That will update all the the view overrides and make sure that the format is correct everywhere.

I did, didnt matter. All other options that I made where saved and when I reopen the configuration, the line is there as well.'
Attached is the address_vat in the custom fileds. It works everywhere (inclduing right calculations and evetrything), except for the confirmation emails.:dry:

- [ ![address&#95;vat.jpg](/forum/attachment/50425) ](/forum/attachment/50425 "address&#95;vat.jpg") [ ](/forum/attachment/50425?download=1 "address&#95;vat.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2NjAxNi1lbmNsb3NlLXZhdC1udW1iZXItaW4tZW1haWwtbm90aWZpY2F0aW9uP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

6 years 2 months ago [\#323438](#323438) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Enclose VAT number in email notification](/forum/35-orders-management/866016-enclose-vat-number-in-email-notification#323438 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hello,  one of the &quot;custom field&quot; I use for the customer registration is the VAT number. I would like it to appear in the email notification sent to the customer and to me after payment.  How is that possible ? Thanks in advance Best regards Morgan")*

Hi,

I don't see why it wouldn't work.
Could you provide a backend access and the order number of an order with the issue so that we can check on the situation ?
You can provide that via our contact form here:
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)

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

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

[](#top)
