Hi,
This problem has been corrected, and will be in the next release.
You can correct it by replacing the code in "yourSite\administrator\component\com_hikashop\classes\product.php":
if(isset($variant->product_weight) && $variant->product_weight==0){
unset($variant->product_weight_unit);
}
if(isset($variant->product_length) && isset($variant->product_height) && isset($variant->product_width) && $variant->product_length==0 && $variant->product_height==0 && $variant->product_width==0){
unset($variant->product_dimension_unit);
}
By:
if(isset($variant->product_weight) && $variant->product_weight==0){
$variant->product_weight_unit=$element->product_weight_unit;
}
if(isset($variant->product_length) && isset($variant->product_height) && isset($variant->product_width) && $variant->product_length==0 && $variant->product_height==0 && $variant->product_width==0){
$variant->product_dimension_unit=$element->product_dimension_unit;
}
Then in the view "product / show" in HikaShop > Display > Views, replace the foreach starting by:
foreach (get_object_vars($this->element->main) as $name=>$value) {
By:
foreach (get_object_vars($this->element->main) as $name=>$value) {
if(!is_array($name)&&!is_object($name)){
$required = false;
foreach ($this->element->variants as $variant) {
if(!empty($variant->$name) && (!is_numeric($variant->$name) || $variant->$name>0)){
$required = true;
break;
}
}
if($required){
foreach ($this->element->variants as $k=>$variant) {
if(empty($variant->$name) || (is_numeric($variant->$name) && $variant->$name==0.0)){
if($name=='product_quantity' && $this->element->$name==-1){
continue;
}
$this->element->variants[$k]->$name=$this->element->main->$name;
}
}
}
}
}
And in the view "product / show_block_dimension" add the lines at the top of the file (after the "<?php tag"):
if($this->element->product_weight==0 && $this->element->main->product_weight>0 ){
$this->element->product_weight = $this->element->main->product_weight;
}
if($this->element->product_width==0 && $this->element->main->product_width>0 ){
$this->element->product_width = $this->element->main->product_width;
}
if($this->element->product_height==0 && $this->element->main->product_height>0 ){
$this->element->product_height = $this->element->main->product_height;
}
if($this->element->product_length==0 && $this->element->main->product_length>0 ){
$this->element->product_length = $this->element->main->product_length;
}