Jerome wrote: Hi,
I think it's the inverse.
Because regarding the code ; the only path I see which could publish the vendor with the "manual validation" activated is ; the activation of a user.
HikaMarket synchronize the user and the vendor, so when you unpublish a user, his vendor account is unpublish too.
But it is also working when a user is publish.
At this moment the best is to edit the file "administrator/components/com_hikamarket/classes/vendor.php" and replace
if($vendor->vendor_published != $shouldHaveVendor) {
$vendor_update->vendor_published = $shouldHaveVendor;
$do = true;
}
Byif($vendor->vendor_published != $shouldHaveVendor && ($auto_registration != 2 || (!empty($oldUser) && isset($oldUser['block']) && $oldUser['block'] == 0))) {
$vendor_update->vendor_published = $shouldHaveVendor;
$do = true;
}
Regards,
Jerome
It should be that way so that if the condition that 'Automatic validation' or 'Vendor auto creation' is selected the vendor will be auto-published:
if($vendor->vendor_published != $shouldHaveVendor && ($auto_registration > 1 )) {
$vendor_update->vendor_published = $shouldHaveVendor;
$do = true;
}
if not ('Manual validation' or 'Vendor Registration not allowed') it won't be published. ($auto_registration <= 1)
Regards!