Author Topic: Custom field override  (Read 1080 times)

Teejay

  • Beginner
  • *
  • Posts: 42
    • Altenagala atelier
  • VirtueMart Version: VM 3.012
Custom field override
« on: March 09, 2020, 14:49:18 pm »
Using VM3.6.10 with Joomla 3.9.15, for a multi-lingual shop, am trying to create override for product color option, was able to create the size option, with translated corresponding values, when i tried doing the same with color option, the values is not translated, i have created in the custom field color string for the appropriate languages, with corresponding values, however it seems not to be functioning, the language constant is translated, but the corresponding values is not working, what am i doing wrong here?

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4341
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Custom field override
« Reply #1 on: March 09, 2020, 14:54:26 pm »
Is your KEY valid ?
This is for eg a valid Joomla language KEY
MY_KEY
This is not valid
My Key

Teejay

  • Beginner
  • *
  • Posts: 42
    • Altenagala atelier
  • VirtueMart Version: VM 3.012
Re: Custom field override
« Reply #2 on: March 09, 2020, 16:04:44 pm »
I don't understand what you mean by language key, i created color string in VM custom field with value, and created override for this in language override, all other overrides, like COM_VIRTUEMART_TAX is working, is this not the key?I have COM_VIRTUEMART_COLOR_OPTION, as language constant, with values in the custom field, could you please educate me a bit 

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4341
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Custom field override
« Reply #3 on: March 09, 2020, 17:20:07 pm »
COM_VIRTUEMART_COLOR_OPTION should be valid. Is this not translated ?
Note that you should not edit the override file but use the Joomla admin language substitution to do it. One error in the file and it stop to work.

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2861
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Custom field override
« Reply #4 on: March 09, 2020, 21:21:32 pm »
The most efficient remedy is to translate the language key with Joomla Language overrides and use BACK END and tick the box "Use both for back end and front end".

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)

Teejay

  • Beginner
  • *
  • Posts: 42
    • Altenagala atelier
  • VirtueMart Version: VM 3.012
Re: Custom field override
« Reply #5 on: March 11, 2020, 14:59:57 pm »
COM_VIRTUEMART_COLOR_OPTION should be valid. Is this not translated ?
Note that you should not edit the override file but use the Joomla admin language substitution to do it. One error in the file and it stop to work.
I did create in language override, translated key in installed languages, with corresponding custom field, including the values, the issue is the language constant has been correctly translated, but the value not, example, Color option is translated to Kleur optie, but the color choice blue, is not translated to blauw, i don't know what to do here, measurement option works fine.
I have created strings for colors in all languages, including corresponding language override for all the string, your update will be very helpful

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3656
  • using Matomo instead of Google Analytics
Re: Custom field override
« Reply #6 on: March 12, 2020, 21:20:36 pm »
Does this help?
https://forum.virtuemart.net/index.php?topic=96758.msg318220#msg318220

For example:
COLOR_RED_VALUE="red"
and then enter into your custom field:
COLOR_RED_VALUE (instead of 'red')
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Teejay

  • Beginner
  • *
  • Posts: 42
    • Altenagala atelier
  • VirtueMart Version: VM 3.012
Re: Custom field override
« Reply #7 on: March 19, 2020, 12:05:30 pm »
Is your KEY valid ?
This is for eg a valid Joomla language KEY
MY_KEY
This is not valid
My Key
appreciate your suggestion, problem is not single color, the color title has been translate, issue is the drop down option in the frontend is not translate, example is blue;burgundy;brown which is default english values, is not translated to blauw;burgundy;braun, the dutch alternate value, i observed this is a joomla feature, so i have posted this on the joomla forum, hopefully you able to assist with idea