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

#   Translation for custom field not showing up

##

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

Less More

- Posts: 59
- Thank you received: 6
-
-

2 years 7 months ago -  2 years 7 months ago [\#359770](#359770) by [Noe](/forum/user/60747-noe "View Noe's Profile")  *[Translation for custom field not showing up](/forum/10-translation/907901-translation-for-custom-field-not-showing-up#359770 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.3 -- PHP version -- : 8.2 -- Browser(s) name and version -- : Firefox  Hello,  I’ve created a custom field (WYSIWYG) and added it in the hikashop/ display/ views – “show&#95;tabular” file where the price is originally located using the below command (“originalartwork” is the column name of my custom field) :  element-&gt;originalartwork; ?&gt;  I’ve enabled “translatable” in the custom field setting and turned off display on the front-end, so that my custom field's content doesn’t appear in the specifications’ section. The custom field's box appears when I click on the French language file (translations) for a specific product; however, when I enter the French text, save the file and check the French page on the frontend, it shows the English text, not the French translation that I’ve entered. The French text I entered for the description of the product is appearing when I open the product’s French page though.  Is there something I’m not doing well?  Here is the link to the page I’ve been working on to try the layout/ settings:    www.noelieceyralartstudio.com/index.php/...-la-vie-et-a-l-amour  Thank you!")* was created by *[Noe](/forum/user/60747-noe "View Noe's Profile")*

-- HikaShop version -- : 5.0.3
-- Joomla version -- : 4.4.3
-- PHP version -- : 8.2
-- Browser(s) name and version -- : Firefox

Hello,

I’ve created a custom field (WYSIWYG) and added it in the hikashop/ display/ views – “show_tabular” file where the price is originally located using the below command (“originalartwork” is the column name of my custom field) :

&lt;?php echo $this-&gt;element-&gt;originalartwork; ?&gt;

I’ve enabled “translatable” in the custom field setting and turned off display on the front-end, so that my custom field's content doesn’t appear in the specifications’ section. The custom field's box appears when I click on the French language file (translations) for a specific product; however, when I enter the French text, save the file and check the French page on the frontend, it shows the English text, not the French translation that I’ve entered. The French text I entered for the description of the product is appearing when I open the product’s French page though.

Is there something I’m not doing well?

Here is the link to the page I’ve been working on to try the layout/ settings:

[ www.noelieceyralartstudio.com/index.php/...-la-vie-et-a-l-amour](https://www.noelieceyralartstudio.com/index.php/fr/oeuvres-originales/product/4-s-ouvrir-a-la-vie-et-a-l-amour)

Thank you!

Last edit: 2 years 7 months ago by [Noe](/forum/user/60747-noe "View Noe's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzkwNzkwMS10cmFuc2xhdGlvbi1mb3ItY3VzdG9tLWZpZWxkLW5vdC1zaG93aW5nLXVwP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86323
- Thank you received: 14283
-
-

2 years 7 months ago [\#359784](#359784) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Translation for custom field not showing up](/forum/10-translation/907901-translation-for-custom-field-not-showing-up#359784 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.3 -- PHP version -- : 8.2 -- Browser(s) name and version -- : Firefox  Hello,  I’ve created a custom field (WYSIWYG) and added it in the hikashop/ display/ views – “show&#95;tabular” file where the price is originally located using the below command (“originalartwork” is the column name of my custom field) :  element-&gt;originalartwork; ?&gt;  I’ve enabled “translatable” in the custom field setting and turned off display on the front-end, so that my custom field's content doesn’t appear in the specifications’ section. The custom field's box appears when I click on the French language file (translations) for a specific product; however, when I enter the French text, save the file and check the French page on the frontend, it shows the English text, not the French translation that I’ve entered. The French text I entered for the description of the product is appearing when I open the product’s French page though.  Is there something I’m not doing well?  Here is the link to the page I’ve been working on to try the layout/ settings:    www.noelieceyralartstudio.com/index.php/...-la-vie-et-a-l-amour  Thank you!")*

Hi,

The code you're using is the code to display the value of the custom field for the product directly from the database, without any processing.
So you would have to use code like this instead: Code:

&lt;?php $field = $this-&gt;fieldsClass-&gt;getField('originalartwork', 'product'); echo $this-&gt;fieldsClass-&gt;show($field, $this-&gt;element-&gt;originalartwork); ?&gt;

This will handle translations, content tags, etc.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzkwNzkwMS10cmFuc2xhdGlvbi1mb3ItY3VzdG9tLWZpZWxkLW5vdC1zaG93aW5nLXVwP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.048 seconds

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