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

#   How to display custom field label/value?

##

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

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 11 months ago [\#178509](#178509) by [Belgium](/forum/user/1567-belgium "View Belgium's Profile")  *[How to display custom field label/value?](/forum/31-development/872830-how-to-display-custom-field-label-value#178509 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Firefox 32.0.3 -- Error-message(debug-mod must be tuned on) -- : none  Question related to custom fields. I defined a custom field named Titre (wine store) that display the alcool degree. In the backend, I defined an option of titre as: Value = 13.5 and Label =13.5° I see that you display in product &quot;titre&quot; option list, the Label value. Currently the code in listing&#95;img&#95;desc.php I am using is: row-&gt;titre; ?&gt;; this displays the value but I want to display the label info. How can I obtain this result. I assume that the value is the key in database and the label is the field that must be displayed. Thanks in advance for support. Regards Daniel")* was created by *[Belgium](/forum/user/1567-belgium "View Belgium's Profile")*

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.27
-- Browser(s) name and version -- : Firefox 32.0.3
-- Error-message(debug-mod must be tuned on) -- : none

Question related to custom fields.
I defined a custom field named Titre (wine store) that display the alcool degree.
In the backend, I defined an option of titre as:
Value = 13.5 and Label =13.5°
I see that you display in product "titre" option list, the Label value.
Currently the code in listing_img_desc.php I am using is:
&lt;?php echo $this-&gt;row-&gt;titre; ?&gt;; this displays the value but I want to display the label info.
How can I obtain this result. I assume that the value is the key in database and the label is the field that must be displayed.
Thanks in advance for support.
Regards
Daniel

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

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

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 11 months ago [\#178530](#178530) by [Belgium](/forum/user/1567-belgium "View Belgium's Profile")  Replied by *[Belgium](/forum/user/1567-belgium "View Belgium's Profile")* on topic *[How to display custom field label/value?](/forum/31-development/872830-how-to-display-custom-field-label-value#178530 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Firefox 32.0.3 -- Error-message(debug-mod must be tuned on) -- : none  Question related to custom fields. I defined a custom field named Titre (wine store) that display the alcool degree. In the backend, I defined an option of titre as: Value = 13.5 and Label =13.5° I see that you display in product &quot;titre&quot; option list, the Label value. Currently the code in listing&#95;img&#95;desc.php I am using is: row-&gt;titre; ?&gt;; this displays the value but I want to display the label info. How can I obtain this result. I assume that the value is the key in database and the label is the field that must be displayed. Thanks in advance for support. Regards Daniel")*

I searched again and again the forum and finally I found the solution in this thread:
[ hikashop.com/forum/product-category-disp...isplay-products.html](https://hikashop.com/forum/product-category-display/870918-insert-custom-fields-in-table-display-products.html)

Ticket can be closed

Regards
Daniel

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3MjgzMC1ob3ctdG8tZGlzcGxheS1jdXN0b20tZmllbGQtbGFiZWwtdmFsdWU/dG1wbD1tYXJrZG93bg==) 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.140 seconds

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

[](#top)
