Joomla Virtue Mart: Convert weight from pounds to grams

Virtue Mart Converting Units of Measurements

The Virtue Mart Shopping Cart Product’s weight is by default using pounds and length using inches. There is an option to change the setting by accessing the php files as follows:

  • Access Ftp account
  • follow the path: administrator/components/com_virtuemart/languages/product/
  • Open Language.php
  • search the word “PHPSHOP_PRODUCT_FORM_WEIGHT_UOM_DEFAULT”
  • and replace the following:
	'PHPSHOP_PRODUCT_FORM_WEIGHT_UOM_DEFAULT' => 'pounds',
	'PHPSHOP_PRODUCT_FORM_DIMENSION_UOM_DEFAULT' => 'inches',
  • with:
	'PHPSHOP_PRODUCT_FORM_WEIGHT_UOM_DEFAULT' => 'kg',
	'PHPSHOP_PRODUCT_FORM_DIMENSION_UOM_DEFAULT' => 'cm',

Save file (and replace with original file is working offline)

 

Hope it works for your needs as it did for mine 😉