Hi,
In the file "components/com_hikamarket/controllers/product.php" replace
$product_id = JRequest::getInt('product_id', 0);
$file_type = JRequest::getVar('file_type', 'product');
By:
$config = hikamarket::config();
$product_id = JRequest::getInt('product_id', 0);
$file_type = JRequest::getVar('file_type', 'product');
And
$params->file_free_download = false;
By:
$params->file_free_download = $config->get('upload_file_free_download', false);
After that, you have to add a new entry in the table "hikamarket_config".
Open the url : "administrator/index.php?option=com_hikamarket&ctrl=config&task=sql" and use this query:
INSERT INTO #__hikamarket_config (`config_namekey`,`config_value`,`config_default`) VALUES ('upload_file_free_download',1,1);
In the next version of HikaMarket, this option would be accessible directly in the backend configuration.
Regards,