Mince, il semble que ma réponse ne soit pas passée hier.
Il faut intervertir le code:
$fieldsClass = hikashop_get('class.field');
$fields = $fieldsClass->getFields('frontcomp',$element,'product','checkout&task=state');
$this->assignRef('fieldsClass',$fieldsClass);
$this->assignRef('fields',$fields);
if(hikashop_level(2)){
$itemFields = $fieldsClass->getFields('frontcomp',$element,'item','checkout&task=state');
$null=array();
$fieldsClass->addJS($null,$null,$null);
$fieldsClass->jsToggle($itemFields,$element,0);
$this->assignRef('itemFields',$itemFields);
$extraFields = array('item'=>&$itemFields);
$requiredFields = array();
$validMessages = array();
$values = array('item'=>$element);
$fieldsClass->checkFieldsForJS($extraFields,$requiredFields,$validMessages,$values);
$fieldsClass->addJS($requiredFields,$validMessages,array('item'));
}
$this->checkVariants($element);
if(!empty($element->options)){
foreach($element->options as $k => $option){
$this->checkVariants($element->options[$k]);
}
}
$this->setDefault($element);
if(!empty($element->options)){
foreach($element->options as $k => $option){
$this->setDefault($element->options[$k]);
}
}
dans le fichier components/com_hikashop/views/product/view.html.php pour corriger le problème.