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 😉

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s