News:

Looking for documentation? Take a look on our wiki

Main Menu

Change Dimensions format

Started by tobisagt, February 07, 2012, 11:09:23 AM

Previous topic - Next topic

tobisagt

Hi,

this is how my dimensions looks at the moment:

2.3000 13.0000 20.5000

------


What i want is:

2,3   13   20,5


Where i need to change it?

karuppiah

Please provide the link of your site..
karuppiah

tobisagt

Thx for you post.

My website isnt't finisehd yet, so i wont publish it here. I send you a PM with the link!

-Tobi

karuppiah

I had seen your link..dimensions means height or width of the image?
karuppiah

tobisagt

no, dimensions means the height, width, length of the product (books)

tobisagt

Please, this is important for me! Someone have an answer??

PixelZombie

http://php.net/manual/de/function.number-format.php

Do it like this for example:

<?php echo number_format($this->product->product_length2','''?>

this gives you 2,10