I 'll ask this way...
Mine Dimensions and weight code is:
<?php if (($this->product->product_length > 0) || ($this->product->product_width > 0) || ($this->product->product_height > 0) || ($this->product->product_weight > 0) || ($this->product->product_packaging > 0)) { ?>
<div class="Dimensions">
<h4><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DIMENSIONS_AND_WEIGHT') ?></h4>
<?php
if ($this->product->product_length > 0) {
echo '<div>'.JText::_('COM_VIRTUEMART_PRODUCT_LENGTH').': ' .$this->product->product_length.$this->product->product_lwh_uom.'</div>';
}
if ($this->product->product_width > 0) {
echo '<div>'.JText::_('COM_VIRTUEMART_PRODUCT_WIDTH').': ' .$this->product->product_width.$this->product->product_lwh_uom.'</div>';
}
if ($this->product->product_height > 0) {
echo '<div>'.JText::_('COM_VIRTUEMART_PRODUCT_HEIGHT').': ' .$this->product->product_height.$this->product->product_lwh_uom.'</div>';
}
echo number_format($this->product->product_weight, 1, '.', ',');
if ($this->product->product_weight > 0) {
echo '<div>'.JText::_('COM_VIRTUEMART_PRODUCT_WEIGHT').': ' .$this->product->product_weight.$this->product->product_weight_uom.'</div>';
}
if ($this->product->product_packaging > 0) {
echo '<div>'.JText::_('COM_VIRTUEMART_PRODUCT_PACKAGING').': ' .$this->product->product_packaging.$this->product->product_unit.'</div>';
}
if ($this->product->product_box) {
?>
<div class="product-box">
<?php
and show me this:
..........................................................................
DIMENSIONS AND WEIGHT
10.0
Weight: 10.0000KG
..........................................................................
How can I put code to show me :
...........................................................................................
DIMENSIONS AND WEIGHT
Weight: 10.0 KG
...........................................................................................
We are talking about this code:
echo number_format($this->product->product_weight, 1, '.', ',');
if ($this->product->product_weight > 0) {
echo '<div>'.JText::_('COM_VIRTUEMART_PRODUCT_WEIGHT').': ' .$this->product->product_weight.$this->product->product_weight_uom.'</div>';
}
Thank you in advance