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

#   Vendor VAT N° no online check?

##

- **[pprle](/forum/user/11949-pprle "View pprle's Profile")**
- [![pprle's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/blue_hikashop_heart.png)](/forum/user/11949-pprle "View pprle's Profile") Topic Author
- [ Offline](/forum/user/11949-pprle)

Less More

- Posts: 158
- Thank you received: 8
-
-

7 years 8 months ago [\#304252](#304252) by [pprle](/forum/user/11949-pprle "View pprle's Profile")  *[Vendor VAT N° no online check?](/forum/19-hikamarket/897000-vendor-vat-n-0-no-online-check#304252 "-- HikaShop version -- : 4.0.2 -- HikaMarket version -- : 3.0.1  Hello,  I know there is a VAT number check option in Hikashop In Hikamarket when a vendor enters a wrong VAT number (his own VAT number) it simply saves like there is no online check Is that related to hikashop or hikamarket? I would prefer that there is a warning /notification when entering a wrong number  Do you think it would be possible to enhance the system with an option to force entering a (correct) VAT number and this only for EU vendors, or maybe is it already possible?")* was created by *[pprle](/forum/user/11949-pprle "View pprle's Profile")*

-- HikaShop version -- : 4.0.2
-- HikaMarket version -- : 3.0.1

Hello,

I know there is a VAT number check option in Hikashop
In Hikamarket when a vendor enters a wrong VAT number (his own VAT number) it simply saves like there is no online check
Is that related to hikashop or hikamarket?
I would prefer that there is a warning /notification when entering a wrong number

Do you think it would be possible to enhance the system with an option to force entering a (correct) VAT number and this only for EU vendors, or maybe is it already possible?

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

7 years 8 months ago [\#304257](#304257) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Vendor VAT N° no online check?](/forum/19-hikamarket/897000-vendor-vat-n-0-no-online-check#304257 "-- HikaShop version -- : 4.0.2 -- HikaMarket version -- : 3.0.1  Hello,  I know there is a VAT number check option in Hikashop In Hikamarket when a vendor enters a wrong VAT number (his own VAT number) it simply saves like there is no online check Is that related to hikashop or hikamarket? I would prefer that there is a warning /notification when entering a wrong number  Do you think it would be possible to enhance the system with an option to force entering a (correct) VAT number and this only for EU vendors, or maybe is it already possible?")*

Hello,

I prepared some code for the next HikaMarket release.
For the current version, you would need to modify the HikaMarket core or to use a plugin trigger (onBeforeVendorCreate / onBeforeVendorUpdate).
The idea is to read the vendor_address_data and check it with the HikaShop vat helper. Code:

if(!empty($vendor-&gt;vendor_address_vat) &amp;&amp; (empty($vendor-&gt;old) &#124;&#124; $vendor-&gt;old-&gt;vendor_address_vat != $vendor-&gt;vendor_address_vat)) { $vatHelper = hikamarket::get('shop.helper.vat'); if(!$vatHelper-&gt;isValid($vendor-&gt;vendor_address_vat)) { // Display the error message with $vatHelper-&gt;message; $do = false; } }

Regards,

---

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

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

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.053 seconds

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