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

#   VAT Required inside EU and NOT required outside EU, possible?

##

- **[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")**
- [![crealiagroup's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30083.png)](/forum/user/30083-crealiagroup "View crealiagroup's Profile") Topic Author
- [ Offline](/forum/user/30083-crealiagroup)

Less More

- Posts: 117
- Thank you received: 3
-
-
- [](http://www.crealia.it)
-

8 years 2 months ago [\#297243](#297243) by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")  *[VAT Required inside EU and NOT required outside EU, possible?](/forum/27-checkout/895595-vat-required-inside-eu-and-not-required-outside-eu-possible#297243 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.11 -- PHP version -- : 7.0.21  I would have the VAT field required for EU Companies meanwhile it should be not required if the company is outside EU. How could I write a rule in the&quot;Address Format&quot; field in the hika configuration?")* was created by *[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")*

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.11
-- PHP version -- : 7.0.21

I would have the VAT field required for EU Companies meanwhile it should be not required if the company is outside EU. How could I write a rule in the"Address Format" field in the hika configuration?

---

[ www.crealia.it/e-commerce/consulenza-ecommerce-hikashop](http://www.crealia.it/e-commerce/consulenza-ecommerce-hikashop)

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

8 years 2 months ago [\#297247](#297247) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[VAT Required inside EU and NOT required outside EU, possible?](/forum/27-checkout/895595-vat-required-inside-eu-and-not-required-outside-eu-possible#297247 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.11 -- PHP version -- : 7.0.21  I would have the VAT field required for EU Companies meanwhile it should be not required if the company is outside EU. How could I write a rule in the&quot;Address Format&quot; field in the hika configuration?")*

Hi,

I don't see a way to do it without adding a dropdown where the customer could select something and then use the "display limited to" setting of the VAT field to restrict its display based on the selection the customer makes. That way, you can have the VAT field required but the required will only be enforced based on what you selected in that "display limited to" setting of the field.

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

- **[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")**
- [![crealiagroup's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30083.png)](/forum/user/30083-crealiagroup "View crealiagroup's Profile") Topic Author
- [ Offline](/forum/user/30083-crealiagroup)

Less More

- Posts: 117
- Thank you received: 3
-
-
- [](http://www.crealia.it)
-

8 years 2 months ago [\#297303](#297303) by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")  Replied by *[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")* on topic *[VAT Required inside EU and NOT required outside EU, possible?](/forum/27-checkout/895595-vat-required-inside-eu-and-not-required-outside-eu-possible#297303 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.11 -- PHP version -- : 7.0.21  I would have the VAT field required for EU Companies meanwhile it should be not required if the company is outside EU. How could I write a rule in the&quot;Address Format&quot; field in the hika configuration?")*

Thanls Nicolas for your answer. Till now I've done exactly what you suggested for every ecommerce website built but I think that this is not the most elegant and also correct solution. Till now I used a radio field to ask if company is inside or outside EU, according to that I show/hide the VAT field but I should always display the VAT field, not hide, bcause if a user from outside EU want to prive the VAT number of it's company he doesn't have a field to type it in.

Would you please considere this as a feature in next releases?

---

[ www.crealia.it/e-commerce/consulenza-ecommerce-hikashop](http://www.crealia.it/e-commerce/consulenza-ecommerce-hikashop)

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

8 years 2 months ago [\#297305](#297305) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[VAT Required inside EU and NOT required outside EU, possible?](/forum/27-checkout/895595-vat-required-inside-eu-and-not-required-outside-eu-possible#297305 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.11 -- PHP version -- : 7.0.21  I would have the VAT field required for EU Companies meanwhile it should be not required if the company is outside EU. How could I write a rule in the&quot;Address Format&quot; field in the hika configuration?")*

Hi,

This seems a bit too specific to have an option for that by default. Why not still charge VAT for EU companies without a VAT number, like we do on our website ?
However, it would be quite easy to do with a custom plugin. You would turn off the "required" setting of the VAT field and then have a plugin implementing the onBeforeAddressCreate and onBeforeAddressUpdate triggers to set the $do variable to false and display a joomla error message ( with $app-&gt;enqueueMessage() ) if the country of the address being created/updated is not in the list of the EU countries.
Any PHP developer should be able to easily do that.

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

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