I am building e-commerce site, where some of the physical units to be used are way smaller than grams. They will be defined on a field basis. A bit sad that right now this module is single physical properties module in whole drupal 8 universe, as Units module is not available for D8.
Please add mili-grams, micro-grams and so on.
Another option would be to take over Units module and make it Drupal 8 + Commerce ready.
Issue fork physical-3122922
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
anybodyI think adding these smaller units is kind of a batch job or more or less simple. It just needs to be done and yes, it makes sense, as we should not assume the use-cases.
Would be great if someone could implement a MR for that.
Comment #3
anybodyComment #6
bhaveshdas commentedHi , I have added mili-grams and micro-gram units.
Could please review it.
Let me know if you need some more changes.
Thankyou !!
Comment #8
ankitv18 commentedDone few nitpicks ~~ changes looks good, hence marking this RTBC
Comment #9
kongkx commentedIts adding "WeightUnit" (mg, µg) to "LengthUnit" . May need to fix.