Closed (won't fix)
Project:
Ubercart
Version:
6.x-2.4
Component:
Products
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
5 Jul 2011 at 10:32 UTC
Updated:
4 May 2012 at 13:59 UTC
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
Comment #1
mpa3b commentedI'm no developer nor a PHP-coder. I just did it and it works for me.
Comment #2
longwaveVolume 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.
Comment #3
longwaveComment #4
eiland commentedIm looking for this too, as we sell drinks and they come in half and whole litre bottles...
Comment #5
tr commentedSee #2