Product measure unit contains only weight units.
Volume measure units are missing.
I added:

$units = array(
'lb' => t('Pounds'),
'kg' => t('Kilograms'),
'oz' => t('Ounces'),
'g' => t('Grams'),
'l' => t('Litres'),
);

Comments

mpa3b’s picture

I'm no developer nor a PHP-coder. I just did it and it works for me.

longwave’s picture

Status: Needs work » Active

Volume is not the same as weight! This field is also used for calculating shipping costs by weight, and this won't work as expected as it's not possible to convert volume to weight without knowing density (and further code will be required to do this conversion anyway).

If you want to show volumes to the user, I suggest just adding a CCK number field where you can store this information, instead of trying to repurpose the weight field for something it wasn't really meant for.

I am tempted to mark this "won't fix" as I am not sure volume will be useful for anything other than displaying to the user, which can purely be done with CCK, but will leave this open for the time being for further discussion.

longwave’s picture

Status: Active » Closed (won't fix)
eiland’s picture

Version: 6.x-2.4 » 7.x-3.1
Status: Closed (won't fix) » Active

Im looking for this too, as we sell drinks and they come in half and whole litre bottles...

tr’s picture

Version: 7.x-3.1 » 6.x-2.4
Status: Active » Closed (won't fix)

See #2