[Skip to main content](#vessel-content)

#   (solved) Translate (user) Custom Text Value

##

- **[SG](/forum/user/12204-sg "View SG's Profile")**
- [![SG's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12204-sg "View SG's Profile") Topic Author
- [ Offline](/forum/user/12204-sg)

Less More

- Posts: 101
- Thank you received: 12
-
-

13 years 6 months ago -  13 years 5 months ago [\#103398](#103398) by [SG](/forum/user/12204-sg "View SG's Profile")  *[(solved) Translate (user) Custom Text Value](/forum/4-how-to/81699-solved-translate-user-custom-text-value#103398 "Hi,  I added a custom text field for the table USER to show some text under the VAT-box. I want to punt something like: (in case you don’t have a VAT n°, please indicate &#42;&#42;) This should appear under the VAT-box.  I initially didn't fill in the name of the label because I DON'T want to display the label, just the value of it, because the value is aligned under the vat-box (see picture) &#91;image&#93;  The problem is now how to translate this value. I have no problems translating the other TYPES of custom fields like TEXT, TEXTAREA, RADIOBUTTONS with Falang. Just this CUSTOMTEXT field doesn't want to be translated.  (Even when I use a the label, the label get's translated but not the value)  I also tried to put a value like #VATMSG# and then NOT use Falang but the translation override in Hikashop configuration.  Thanks!!!  PS: If there is a way to show the Label under the VAT-box than that would solve the problem too and I won't need to translate the value just the label. But labels are TD class=key and I'm not sure how to make it appear under the VAT-box")* was created by *[SG](/forum/user/12204-sg "View SG's Profile")*

Hi,

I added a custom text field for the table USER to show some text under the VAT-box.
I want to punt something like: (in case you don’t have a VAT n°, please indicate **)
This should appear under the VAT-box.

I initially didn't fill in the name of the label because I DON'T want to display the label, just the value of it, because the value is aligned under the vat-box (see picture)
[ ![&#91;IMG](http://i44.tinypic.com/x3i834.jpg) ](http://i44.tinypic.com/x3i834.jpg "&#91;IMG")

The problem is now how to translate this value.
I have no problems translating the other TYPES of custom fields like TEXT, TEXTAREA, RADIOBUTTONS with Falang.
Just this CUSTOMTEXT field doesn't want to be translated.

(Even when I use a the label, the label get's translated but not the value)

I also tried to put a value like #VATMSG# and then NOT use Falang but the translation override in Hikashop configuration.

Thanks!!!

PS: If there is a way to show the Label under the VAT-box than that would solve the problem too and I won't need to translate the value just the label. But labels are TD class=key and I'm not sure how to make it appear under the VAT-box

Last edit: 13 years 5 months ago by [SG](/forum/user/12204-sg "View SG's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxNjk5LXNvbHZlZC10cmFuc2xhdGUtdXNlci1jdXN0b20tdGV4dC12YWx1ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

13 years 6 months ago -  13 years 5 months ago [\#103435](#103435) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Translate (user) Custom Text Value](/forum/4-how-to/81699-solved-translate-user-custom-text-value#103435 "Hi,  I added a custom text field for the table USER to show some text under the VAT-box. I want to punt something like: (in case you don’t have a VAT n°, please indicate &#42;&#42;) This should appear under the VAT-box.  I initially didn't fill in the name of the label because I DON'T want to display the label, just the value of it, because the value is aligned under the vat-box (see picture) &#91;image&#93;  The problem is now how to translate this value. I have no problems translating the other TYPES of custom fields like TEXT, TEXTAREA, RADIOBUTTONS with Falang. Just this CUSTOMTEXT field doesn't want to be translated.  (Even when I use a the label, the label get's translated but not the value)  I also tried to put a value like #VATMSG# and then NOT use Falang but the translation override in Hikashop configuration.  Thanks!!!  PS: If there is a way to show the Label under the VAT-box than that would solve the problem too and I won't need to translate the value just the label. But labels are TD class=key and I'm not sure how to make it appear under the VAT-box")*

Hi,

The custom text type custom fields do not handle translations.
Actually you're the first one who asked for it.

Edit the file administrator/components/com_hikashop/classes/field.php and change the line: Code:

return @$field-&gt;field_options['customtext'];

to: Code:

return $this-&gt;trans(@$field-&gt;field_options['customtext']);

and the if you enter a translation key like MY_TEXT in the value of the custom field, you can then translate it in each translation file override with such line:
MY_TEXT=" the text I want to add"

[ www.hikashop.com/en/download/languages.html#modify](http://www.hikashop.com/en/download/languages.html#modify)

Last edit: 13 years 5 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

The following user(s) said Thank You: [SG](/forum/user/12204-sg "View SG's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxNjk5LXNvbHZlZC10cmFuc2xhdGUtdXNlci1jdXN0b20tdGV4dC12YWx1ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[adambako](/forum/user/8139-adambako "View adambako's Profile")**
- [![adambako's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8139-adambako "View adambako's Profile")
- [ Offline](/forum/user/8139-adambako)

Less More

- Posts: 30
- Thank you received: 1
-
- [](http://www.digisys.sk)
-

12 years 10 months ago -  12 years 10 months ago [\#136821](#136821) by [adambako](/forum/user/8139-adambako "View adambako's Profile")  Replied by *[adambako](/forum/user/8139-adambako "View adambako's Profile")* on topic *[Translate (user) Custom Text Value](/forum/4-how-to/81699-solved-translate-user-custom-text-value#136821 "Hi,  I added a custom text field for the table USER to show some text under the VAT-box. I want to punt something like: (in case you don’t have a VAT n°, please indicate &#42;&#42;) This should appear under the VAT-box.  I initially didn't fill in the name of the label because I DON'T want to display the label, just the value of it, because the value is aligned under the vat-box (see picture) &#91;image&#93;  The problem is now how to translate this value. I have no problems translating the other TYPES of custom fields like TEXT, TEXTAREA, RADIOBUTTONS with Falang. Just this CUSTOMTEXT field doesn't want to be translated.  (Even when I use a the label, the label get's translated but not the value)  I also tried to put a value like #VATMSG# and then NOT use Falang but the translation override in Hikashop configuration.  Thanks!!!  PS: If there is a way to show the Label under the VAT-box than that would solve the problem too and I won't need to translate the value just the label. But labels are TD class=key and I'm not sure how to make it appear under the VAT-box")*

hi nicolas.. i need to transalte custom field too, but cant find that line of code..

its still there??

thanks

**update**
ok i got it.. its working

---

[ www.digisys.sk](http://www.digisys.sk)

Last edit: 12 years 10 months ago by [adambako](/forum/user/8139-adambako "View adambako's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxNjk5LXNvbHZlZC10cmFuc2xhdGUtdXNlci1jdXN0b20tdGV4dC12YWx1ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.049 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
