VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Magev88 on February 04, 2015, 09:49:45 AM

Title: SOLVED | Product weight too many zero
Post by: Magev88 on February 04, 2015, 09:49:45 AM
Hello,
i have a Joomla 3.3 site with VM 3.0.4 and in the products details page, if i insert the product weight, i see it with too many zero, like this:

http://www.idea-s.it/rocks/index.php/it/shop/riallocatore-ammortizzatore-di-sterzo-detail

What i have to change in the control panel for to see for example 6 kg and not 6.0000 KG like now?

Thanks
Title: Re: Product weight too many zero
Post by: Magev88 on February 04, 2015, 10:35:24 AM
ok, Solved by here: http://forum.virtuemart.net/index.php?topic=90524.0

;)
Title: Re: SOLVED | Product weight too many zero
Post by: Milbo on February 04, 2015, 11:06:35 AM
Bad solution, there is a reason for the digits, please use

echo round($product->product_weight,2);
Title: Re: SOLVED | Product weight too many zero
Post by: Magev88 on February 19, 2015, 17:19:42 PM
And what i have to modify this? Not in the Database, right?
So where?

Thanks

p.s.
for now, with the "bad" solution it works.... can this create some problems maybe?