I currently have output looking like this 64.0 x 31.0 x 35.3 cm, which is not very nice. I would like it outputted as 64 x 31 x 35.3 cm
This is the current code:
Code: Select all
$product_size = "";
$product_size .= number_format($this->data[0]->product_length,'1','.',',');
$product_size .= ' x ';
$product_size .= number_format($this->data[0]->product_width,'1','.',',');
$product_size .= ' x ';
$product_size .= number_format($this->data[0]->product_height,'1','.',',');
$product_size .= ' cm';
$this->template = str_replace('{product_size}',$product_size,$this->template);