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.
if(!empty($vendor->vendor_address_vat) && (empty($vendor->old) || $vendor->old->vendor_address_vat != $vendor->vendor_address_vat)) {
$vatHelper = hikamarket::get('shop.helper.vat');
if(!$vatHelper->isValid($vendor->vendor_address_vat)) {
// Display the error message with $vatHelper->message;
$do = false;
}
}
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.