Hi,
The lastest HikaShop 2.3.0 package should contain the patch that I gave several weeks ago.
The HikaMarket patch is not include and like I said, two other modifications are missing in order to have the full complete feature.
In the plugin "plugins/hikashop/market/market.php" add the new function in the class object
public function onFieldFileDownload(&$found, $name, $field_table, $field_namekey, $options) {
if(substr($field_table, 0, 15) != 'plg.hikamarket.')
return;
if(!$this->init())
return;
$fieldClass = hikamarket::get('class.field');
$fieldClass->fieldFileDownload($found, $name, $field_table, $field_namekey, $options);
}
And in the class field (administrator/component/com_hikamarket/classes/field.php), replace
'struct' => array(
'text' => 'HIKAMARKET_VENDOR',
'table' => 'vendor',
'columns' => array('vendor_params')
),
By:
'struct' => array(
'text' => 'HIKAMARKET_VENDOR',
'table' => 'vendor',
'id' => 'vendor_id',
'columns' => array('vendor_params')
),
And add this new function:
public function fieldFileDownload(&$found, $name, $field_table, $field_namekey, $options) {
if(substr($field_table, 0, 15) != 'plg.hikamarket.')
return;
$table = substr($field_table, 15);
$query = '';
foreach($this->fields as $key => $field) {
if(empty($field['struct']))
continue;
if($key == $table) {
$query = 'SELECT '.$field['id'].' FROM '.$field['table'].' WHERE '.$field_namekey . ' = '. $this->db->Quote($name);
}
}
if(!empty($query)) {
$this->db->setQuery($query);
$result = $this->db->loadResult();
if($result)
$found = true;
}
}
With these modifications in HikaMarket, the vendor image will be accessible for everyone not only the vendor who upload his image.
About the CSS modification, we do not include options for everything (there is already a lot of options in HikaMarket) so the best is sometime the CSS or the view modification.
To have a custom design for your vendor page or other, the view modification will be the best.
It is totally safe and recommended, specially if you want to add some special content.
Regards,