Wrong unit of measurement for weights after migration. Kilogram becomes GR

Started by Keukie, March 12, 2014, 18:29:13 PM

Previous topic - Next topic

Keukie

There seems to be a small bug with the upgrade tool.

After migrating from VM 1.1.9 an Joomla 1.5 to the lastest VM2.0.26d and Joomla 2.5.19 I noticed a problem with the shipping weights.

Apparently a weight of for example 0.022 kilogram was stored in the database table #__virtuemart_products as 0.022 GR.
So the field product_weight_uom was set to 'GR'.

In the backend the product weight is still shown correctly as 0.022 Kilogram (maybe because it's the first option, and GR is not recognized).

When calculating the shipping weight however, I get 0.022 gram.

Resaving a product changes product_weight_uom to 'KG' and solved my problems.

Hope this can help someone.