Hi,
You can change the code:
$fileClass = hikashop_get('class.file');
$status = $fileClass->save($file, $file_type);
$ret->file_id = $status;
$ret->params->file_id = $status;
if($file_type != 'product') {
$ret->params->file_free_download = $config->get('upload_file_free_download', false);
$ret->params->file_limit = -1;
$ret->params->file_size = @filesize($uploadConfig['upload_dir'] . @$uploadConfig['options']['sub_folder'] . $file->file_name);
}
to:
if($file_type != 'product') {
$file->file_free_download = $config->get('upload_file_free_download', false);
$file->file_limit = 0;
}
$fileClass = hikashop_get('class.file');
$status = $fileClass->save($file, $file_type);
$ret->file_id = $status;
$ret->params->file_id = $status;
if($file_type != 'product') {
$ret->params->file_free_download = $file->file_free_download;
$ret->params->file_limit = $file->file_limit;
$ret->params->file_size = @filesize($uploadConfig['upload_dir'] . @$uploadConfig['options']['sub_folder'] . $file->file_name);
}
in the file administrator/components/com_hikashop/controllers/product.php in order to fix that.
A similar change can be do in components/com_hikamarket/controllers/product.php