News:

Looking for documentation? Take a look on our wiki

Main Menu

Strange problem with displaying weight

Started by fale, May 10, 2015, 17:34:02 PM

Previous topic - Next topic

fale

Hello,

I have a strange problem with the display of weight.

Instead, the unit weight in grams - displays  G

How to solve this problem?

PRO

where at?

on product page?

<?php if ($this->product->product_weight_uom =='G'){echo 'Grams';} ?>

fale

#2
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

fale

#3
Please see my settings. What did I do wrong?

fale

This database can change the SQL-query?

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


How to solve this problem?


PRO


fale

#6
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 Грамм

PRO

components/com_virtuemart/language

I have language files there

borro

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?
Wish you happiness!

Milbo

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"?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/