Changing inches to centimetres, pounds to kilograms
cccmikey:
G'day :)
I can't seem to find where I can change the default unit of measures to kg and centimetres. I can't find it in the db, and my cPanel host doesn't let me search file contents so I'm not sure where it's hidden in the code in the current virtuemart install.
Cheers, Mike
moonstone:
I was having the same problem and did a text seach for "inches" in Joomla folder and got this from \administrator\components\com_virtuemart\CHANGELOG.php:
Quote
^ Now is possible set default product weight unit (pounds) and default product length unit (inches) in language file:
var $_PHPSHOP_PRODUCT_FORM_WEIGHT_UOM and var $_PHPSHOP_PRODUCT_FORM_LENGTH_UOM
I proceeded to change \administrator\components\com_virtuemart\languages\english.php around lines 328 - 329:
Quote
var $_PHPSHOP_PRODUCT_FORM_WEIGHT_UOM_DEFAULT = 'pounds';
var $_PHPSHOP_PRODUCT_FORM_DIMENSION_UOM_DEFAULT = 'inches';
change to:
Quote
var $_PHPSHOP_PRODUCT_FORM_WEIGHT_UOM_DEFAULT = 'kg';
var $_PHPSHOP_PRODUCT_FORM_DIMENSION_UOM_DEFAULT = 'cm';
That's it! Hope that works for you too... ;)
Asoka:
I use version 1.1.3
file located in
\administrator\components\com_virtuemart\languages\product\english.php
for your reference.
weatherfront:
Surely this just changes the text you see for each product but not the units and therefore any calculations.
Admitedly the calcs don't cause a problem uless / until perhaps volumetric weight is introduced and someone uses the inches dim to get cubic feet!
There must be somewhere to tell the code that in the UK we use metric dims and not imperial.
warfie:
Worked for me. Cheers, moonstone!
Navigation
[0] Message Index
[#] Next page