News:

Support the VirtueMart project and become a member

Main Menu

Lengh, width and heigh zeroes after decimal places

Started by vettahead, August 24, 2012, 10:24:37 AM

Previous topic - Next topic

vettahead

im sure this has been asked before but after 40 mins of searching im feeling a little exasperated!  as we aere working in mm i do not need a decimal place at all and the trailing .0000 needs to go (see attachment.)  how is this done? i'd have expected a function in the backend but i cant find it? i cant find it in the code or database either?  im sure its an easy fix but it has me stumped :(   

thanks people!


im using 2.0.8e if that helps!   8)

[attachment cleanup by admin]

ivus

Hi vettahead,

What is that screengrab of? I'm assuming it's in the productdetails view?

If so... I don't recall Length, Width, Height being in the template of outputted fields. So am I right in assuming that you've added it yourself? In which case you could just use a formatting function around the outputted number.

http://www.w3schools.com/php/func_string_number_format.asp

;D