Hi,
Just to be sure, you want to add the dimensions in the table under "Diameter" and "Volume", right ?
If it is, you have to remove the code:
<?php if(isset($element->product_weight) && bccomp($element->product_weight,0,3)){ ?>
<span id="hikashop_product_weight_main" class="hikashop_product_weight_main">
<?php echo JText::_('PRODUCT_WEIGHT').': '.rtrim(rtrim($element->product_weight,'0'),',.').' '.JText::_($element->product_weight_unit); ?><br />
</span>
<?php
}
if($this->config->get('dimensions_display',0) && bccomp($element->product_width,0,3)){ ?>
<span id="hikashop_product_width_main" class="hikashop_product_width_main">
<?php echo JText::_('PRODUCT_WIDTH').': '.rtrim(rtrim($element->product_width,'0'),',.').' '.JText::_($element->product_dimension_unit); ?><br />
</span>
<?php }
if($this->config->get('dimensions_display',0) && bccomp($element->product_length,0,3)){ ?>
<span id="hikashop_product_length_main" class="hikashop_product_length_main">
<?php echo JText::_('PRODUCT_LENGTH').': '.rtrim(rtrim($element->product_length,'0'),',.').' '.JText::_($element->product_dimension_unit); ?><br />
</span>
<?php }
if($this->config->get('dimensions_display',0) && bccomp($element->product_height,0,3)){ ?>
<span id="hikashop_product_height_main" class="hikashop_product_height_main">
<?php echo JText::_('PRODUCT_HEIGHT').': '.rtrim(rtrim($element->product_height,'0'),',.').' '.JText::_($element->product_dimension_unit); ?><br />
</span>
<?php } ?>
And add code like the following where you want:
<tr id="hikashop_dimensions_tr_dimensions">
<td class="hikashop_compare_details_first_column"><?php echo JText::_('PRODUCT_WEIGHT'); ?></td>
<?php
foreach($this->elements as $k => $element) {
if(isset($element->product_weight) && bccomp($element->product_weight,0,3)){ ?>
<td class="hikashop_product_weight_main">
<?php echo rtrim(rtrim($element->product_weight,'0'),',.').' '.JText::_($element->product_weight_unit); ?><br />
</td>
<?php
}
}
?>
</tr>
<tr id="hikashop_dimensions_tr_dimensions">
<td class="hikashop_compare_details_first_column"><?php echo JText::_('PRODUCT_WIDTH'); ?></td>
<?php
foreach($this->elements as $k => $element) {
if(isset($element->product_width) && bccomp($element->product_width,0,3)){ ?>
<td class="hikashop_product_width_main">
<?php echo rtrim(rtrim($element->product_width,'0'),',.').' '.JText::_($element->product_dimension_unit); ?><br />
</td>
<?php
}
}
?>
</tr>
<tr id="hikashop_dimensions_tr_dimensions">
<td class="hikashop_compare_details_first_column"><?php echo JText::_('PRODUCT_LENGTH'); ?></td>
<?php
foreach($this->elements as $k => $element) {
if(isset($element->product_length) && bccomp($element->product_length,0,3)){ ?>
<td class="hikashop_product_length_main">
<?php echo rtrim(rtrim($element->product_length,'0'),',.').' '.JText::_($element->product_dimension_unit); ?><br />
</td>
<?php
}
}
?>
</tr>
<tr id="hikashop_dimensions_tr_dimensions">
<td class="hikashop_compare_details_first_column"><?php echo JText::_('PRODUCT_HEIGHT'); ?></td>
<?php
foreach($this->elements as $k => $element) {
if(isset($element->product_height) && bccomp($element->product_height,0,3)){ ?>
<td class="hikashop_product_height_main">
<?php echo rtrim(rtrim($element->product_height,'0'),',.').' '.JText::_($element->product_dimension_unit); ?><br />
</td>
<?php
}
}
?>
</tr>