Hello,
I have a strange problem with the display of weight.
Instead, the unit weight in grams - displays G
How to solve this problem?
where at?
on product page?
<?php if ($this->product->product_weight_uom =='G'){echo 'Grams';} ?>
Quote from: PRO on May 10, 2015, 17:53:02 PM
where at?
on product page?
<?php if ($this->product->product_weight_uom =='G'){echo 'Grams';} ?>
Thanks for the answer. But it's not really something.
Language file (\ components \ com_virtuemart \ language \ ru-RU \ ru-RU.com_virtuemart.ini)
COM_VIRTUEMART_UNIT_SYMBOL_G = "
г"
Instead, the letter "г" - displayed big
GIf I change the weight of the goods in kilograms. - I see
KGMy language file:
COM_VIRTUEMART_UNIT_SYMBOL_KG = "
кг"
This is a problem with the translation of the product parameters. How can I see the correct translation?
If I switch to the English language,
I see, too,
GLanguage file (\administrator\components\com_virtuemart\language\en-GB\en-GB.com_virtuemart.ini)
COM_VIRTUEMART_UNIT_NAME_G = "Gramme"
I want to see = Gramme
Please see my settings. What did I do wrong?
This database can change the SQL-query?
UPDATE `jos_virtuemart_products`
SET `product_weight_uom` = 'Грамм"
How to solve this problem?
have you tried to use a language manager?
and an override?
https://www.ostraining.com/blog/joomla/languge-manager/
Quote from: PRO on May 12, 2015, 00:47:39 AM
have you tried to use a language manager?
and an override?
https://www.ostraining.com/blog/joomla/languge-manager/
I installed language -ru-RU
The file ... \ httpd \ site \ language \ ru-RU \ ru-RU.com_virtuemart.ini
There are some lines:
COM_VIRTUEMART_UNIT_NAME_FOOT="Фут" COM_VIRTUEMART_UNIT_NAME_G="Грамм" COM_VIRTUEMART_UNIT_NAME_INCH="Дюймов" COM_VIRTUEMART_UNIT_NAME_KG="Килограмм" COM_VIRTUEMART_UNIT_NAME_L="Литр" COM_VIRTUEMART_UNIT_NAME_LB="Фунтов" COM_VIRTUEMART_UNIT_NAME_M="Метров" COM_VIRTUEMART_UNIT_NAME_MG="Миллиграмм" COM_VIRTUEMART_UNIT_NAME_MM="Миллиметров" |
I set the weight in grams. COM_VIRTUEMART_UNIT_NAME_G="Грамм"
I still see - G Weight: 50 G
But I want to - Gramme ("Грамм")
Needed: Weight: 50 Грамм
components/com_virtuemart/language
I have language files there
Quote from: fale on May 12, 2015, 01:18:57 AM
Needed: Weight: 50 Грамм
Hello, fale!
Did you find any solution for displaying translated unit of measurement of weight?
I still wonder where is uses it.
The unit price works as expected with the language, I just tested it.
So does he use an own layout? or does he use the customfield "property"?