Hi,
Please edit the file "administrator/components/com_hikashop/classes/field.php" and replace
JPluginHelper::importPlugin('hikashop');
$dispatcher = JDispatcher::getInstance();
$dispatcher->trigger('onFieldDateDisplay', array($field->field_namekey, $field, &$value, &$map, &$format, &$size));
By
if(HIKASHOP_J25 && !empty($value) && $field->field_options['format'] != "%Y-%m-%d") {
$seps = preg_replace('#[a-z0-9%]#iU','',$field->field_options['format']);
$seps = str_replace(array('.','-'),array('\.','\-'),$seps);
$mConv = false; $yP = -1; $mP = -1; $dP = -1; $i = 0;
foreach(preg_split('#['.$seps.']#', $field->field_options['format']) as $d) {
switch($d) {
case '%y':
case '%Y':
if($yP<0) $yP = $i;
break;
case '%b':
case '%B':
$mConv = true;
case '%m':
if($mP<0) $mP = $i;
break;
case '%d':
case '%e':
if($dP<0) $dP = $i;
break;
}
$i++;
}
$elems = preg_split('#['.$seps.']#', $value);
$value = @$elems[$yP] . '-' . @$elems[$mP] . '-' . @$elems[$dP];
$app = Jfactory::getApplication();
if($app->isAdmin()) {
$app->enqueueMessage('Since Joomla 2.5.24 it is not possible anymore to change the format of dates. If you need a different format, please use the advanced datepicker type of custom field.');
}
$format = "%Y-%m-%d";
$field->field_options['format'] = $format;
}
if(HIKASHOP_J25 && !empty($value)) {
try{
JHTML::_('date', $value, null, null);
}catch(Exception $e) {
$value = '';
}
}
JPluginHelper::importPlugin('hikashop');
$dispatcher = JDispatcher::getInstance();
$dispatcher->trigger('onFieldDateDisplay', array($field->field_namekey, $field, &$value, &$map, &$format, &$size));
It will manage the bug introduced in Joomla 2.5.24 and Joomla 3.3
Regards,