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

Command icon 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

PlayfulWolf created an issue. See original summary.

anybody’s picture

Issue tags: +Novice

I 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.

anybody’s picture

Title: Smaller units? » Add smaller units (milli-*)

bhaveshdas made their first commit to this issue’s fork.

bhaveshdas’s picture

Status: Active » Needs review

Hi , I have added mili-grams and micro-gram units.
Could please review it.
Let me know if you need some more changes.

Thankyou !!

ankitv18 made their first commit to this issue’s fork.

ankitv18’s picture

Status: Needs review » Reviewed & tested by the community

Done few nitpicks ~~ changes looks good, hence marking this RTBC

kongkx’s picture

Its adding "WeightUnit" (mg, µg) to "LengthUnit" . May need to fix.