Hi,
Please edit the file "administrator/components/com_hikamarket/classes/vendor.php" and replace
$status = $this->save($vendor);
if($status) {
By
$query = 'SELECT * FROM '.hikamarket::table('shop.field').' WHERE field_table = \'plg.hikamarket.vendor\' AND field_frontcomp = 1 AND field_published = 1 ORDER BY field_ordering';
$this->db->setQuery($query);
$vendorFields = $this->db->loadObjectList();
if(!empty($vendorFields)) {
foreach($vendorFields as $vendorField) {
$namekey = $vendorField->field_namekey;
if(substr($namekey, 0, 7) == 'vendor_') {
$name = substr($namekey, 7);
if(isset($status->address_data) && isset($status->address_data->$name))
$vendor->$namekey = $status->address_data->$name;
}
}
}
$status = $this->save($vendor);
if($status) {
It will copy the user address to the vendor during the registration.
Regards,