VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: fale on May 10, 2015, 17:34:02 PM

Title: Strange problem with displaying weight
Post by: fale on May 10, 2015, 17:34:02 PM
Hello,

I have a strange problem with the display of weight.

Instead, the unit weight in grams - displays  G

How to solve this problem?
Title: Re: Strange problem with displaying weight
Post by: PRO on May 10, 2015, 17:53:02 PM
where at?

on product page?

<?php if ($this->product->product_weight_uom =='G'){echo 'Grams';} ?>
Title: Re: Strange problem with displaying weight
Post by: fale on May 10, 2015, 18:12:32 PM
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 G


If I change the weight of the goods in kilograms. - I see KG

My 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, G

Language file (\administrator\components\com_virtuemart\language\en-GB\en-GB.com_virtuemart.ini)
COM_VIRTUEMART_UNIT_NAME_G = "Gramme"


I want to see = Gramme
Title: Re: Strange problem with displaying weight
Post by: fale on May 11, 2015, 00:56:07 AM
Please see my settings. What did I do wrong?
Title: Re: Strange problem with displaying weight
Post by: fale on May 12, 2015, 00:08:06 AM
This database can change the SQL-query?

UPDATE `jos_virtuemart_products`
SET `product_weight_uom` = 'Грамм"


How to solve this problem?

Title: Re: Strange problem with displaying weight
Post by: 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/
Title: Re: Strange problem with displaying weight
Post by: fale on May 12, 2015, 01:18:57 AM
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 Грамм
Title: Re: Strange problem with displaying weight
Post by: PRO on May 13, 2015, 00:07:51 AM
components/com_virtuemart/language

I have language files there
Title: Re: Strange problem with displaying weight
Post by: borro on December 27, 2015, 07:35:56 AM
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?
Title: Re: Strange problem with displaying weight
Post by: Milbo on January 04, 2016, 13:23:21 PM
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"?