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

#   Display Product Table custom fields in lis views

##

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

Less More

- Posts: 40
- Thank you received: 0
-
-

13 years 1 month ago [\#123613](#123613) by [simonbornhoft](/forum/user/21260-simonbornhoft "View simonbornhoft's Profile")  *[Display Product Table custom fields in lis views](/forum/4-how-to/861997-display-product-table-custom-fields-in-lis-views#123613 "Hi,  I have some products that have custom fields. I need to display then in the product list views, if they are present.  Does this need some customisation of the template, or am I missing a configuration option? I found the config option for the item custom fields, but not for product custom fields.  Many Thanks")* was created by *[simonbornhoft](/forum/user/21260-simonbornhoft "View simonbornhoft's Profile")*

Hi,

I have some products that have custom fields. I need to display then in the product list views, if they are present.

Does this need some customisation of the template, or am I missing a configuration option? I found the config option for the item custom fields, but not for product custom fields.

Many Thanks

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 1 month ago [\#123696](#123696) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Display Product Table custom fields in lis views](/forum/4-how-to/861997-display-product-table-custom-fields-in-lis-views#123696 "Hi,  I have some products that have custom fields. I need to display then in the product list views, if they are present.  Does this need some customisation of the template, or am I missing a configuration option? I found the config option for the item custom fields, but not for product custom fields.  Many Thanks")*

Hi,

To display the product custom fields in a product listing, it require some php modifications.
You have to add a code like: Code:

if(isset($this-&gt;row-&gt;custom_field_column_name) &amp;&amp; !empty($this-&gt;row-&gt;custom_field_column_name)){ echo $this-&gt;row-&gt;custom_field_column_name; }

For each product custom field.

The following user(s) said Thank You: [simonbornhoft](/forum/user/21260-simonbornhoft "View simonbornhoft's Profile"), [epma-website](/forum/user/31919-epma-website "View epma-website's Profile")

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

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

Less More

- Posts: 40
- Thank you received: 0
-
-

13 years 1 month ago [\#123782](#123782) by [simonbornhoft](/forum/user/21260-simonbornhoft "View simonbornhoft's Profile")  Replied by *[simonbornhoft](/forum/user/21260-simonbornhoft "View simonbornhoft's Profile")* on topic *[Display Product Table custom fields in lis views](/forum/4-how-to/861997-display-product-table-custom-fields-in-lis-views#123782 "Hi,  I have some products that have custom fields. I need to display then in the product list views, if they are present.  Does this need some customisation of the template, or am I missing a configuration option? I found the config option for the item custom fields, but not for product custom fields.  Many Thanks")*

That's perfect! Thank you Xavier

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

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

Less More

- Posts: 8
- Thank you received: 0
-
-

11 years 11 months ago -  11 years 11 months ago [\#180158](#180158) by [mediax](/forum/user/34376-mediax "View mediax's Profile")  Replied by *[mediax](/forum/user/34376-mediax "View mediax's Profile")* on topic *[Display Product Table custom fields in lis views](/forum/4-how-to/861997-display-product-table-custom-fields-in-lis-views#180158 "Hi,  I have some products that have custom fields. I need to display then in the product list views, if they are present.  Does this need some customisation of the template, or am I missing a configuration option? I found the config option for the item custom fields, but not for product custom fields.  Many Thanks")*

Hi Xavier,

I am trying to add a custom field to the product listing. I need the customer to choose a SIM type, one of two options.

I have tried the suggested code to add the custom field to the product listing view, but no success. This is what I have added to product / listing_img_title.php

&lt;?php if(isset($this-&gt;row-&gt;sim_type) &amp;&amp; !empty($this-&gt;row-&gt;sim_type)){
echo $this-&gt;row-&gt;sim_type;
} ?&gt;

The custom field type is Item, and I have checked that the right category is assigned - it does appear in the product view. What else can I look at to accomplish this?

//UPDATE

I have also done a var_dump on the listing page - I can see the sim_type variable and value, but it is not displaying.

//UPDATE

I have now moved the echo statement to lower down in the view file, and have managed to display some data. It does however only display the one option of the custom field as a string and not as a radio button option. Please could you assist me in reference to how to display the radio button or drop down list to have both options

Last edit: 11 years 11 months ago by [mediax](/forum/user/34376-mediax "View mediax's Profile"). Reason: Update

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 11 months ago -  11 years 11 months ago [\#180166](#180166) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Display Product Table custom fields in lis views](/forum/4-how-to/861997-display-product-table-custom-fields-in-lis-views#180166 "Hi,  I have some products that have custom fields. I need to display then in the product list views, if they are present.  Does this need some customisation of the template, or am I missing a configuration option? I found the config option for the item custom fields, but not for product custom fields.  Many Thanks")*

Hi,

The given method is only working for the product custom field, so just display a value set in backend.

&gt; please read next post

Last edit: 11 years 11 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 11 months ago [\#180468](#180468) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Display Product Table custom fields in lis views](/forum/4-how-to/861997-display-product-table-custom-fields-in-lis-views#180468 "Hi,  I have some products that have custom fields. I need to display then in the product list views, if they are present.  Does this need some customisation of the template, or am I missing a configuration option? I found the config option for the item custom fields, but not for product custom fields.  Many Thanks")*

Sorry, to display the custom item field in the listing, you just have to enable the option "Display custom item fields" in the menu / module which is listing the products. ![;)](/media/kunena/emoticons/11.png ";)")

I edited my last message, the given information was not correct.

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

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

Less More

- Posts: 8
- Thank you received: 0
-
-

11 years 11 months ago [\#180491](#180491) by [mediax](/forum/user/34376-mediax "View mediax's Profile")  Replied by *[mediax](/forum/user/34376-mediax "View mediax's Profile")* on topic *[Display Product Table custom fields in lis views](/forum/4-how-to/861997-display-product-table-custom-fields-in-lis-views#180491 "Hi,  I have some products that have custom fields. I need to display then in the product list views, if they are present.  Does this need some customisation of the template, or am I missing a configuration option? I found the config option for the item custom fields, but not for product custom fields.  Many Thanks")*

Thanks Xavier, that fixed the issue for me ![:)](/media/kunena/emoticons/8.png ":)")

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

11 years 10 months ago [\#182695](#182695) by [deank](/forum/user/11974-deank "View deank's Profile")  Replied by *[deank](/forum/user/11974-deank "View deank's Profile")* on topic *[Display Product Table custom fields in lis views](/forum/4-how-to/861997-display-product-table-custom-fields-in-lis-views#182695 "Hi,  I have some products that have custom fields. I need to display then in the product list views, if they are present.  Does this need some customisation of the template, or am I missing a configuration option? I found the config option for the item custom fields, but not for product custom fields.  Many Thanks")*

What if you want to display custom fields based upon category groups?

For instance lets say I have 4 product categories, each of them contain different products, but each product has its own set of custom products fields which are common within its group. Now I want to display all the categories at once, but grouped by category with the category custom fields in the table header for each category based upon the custom fields associated with the products in each group.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg2MTk5Ny1kaXNwbGF5LXByb2R1Y3QtdGFibGUtY3VzdG9tLWZpZWxkcy1pbi1saXMtdmlld3M/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 10 months ago [\#182703](#182703) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display Product Table custom fields in lis views](/forum/4-how-to/861997-display-product-table-custom-fields-in-lis-views#182703 "Hi,  I have some products that have custom fields. I need to display then in the product list views, if they are present.  Does this need some customisation of the template, or am I missing a configuration option? I found the config option for the item custom fields, but not for product custom fields.  Many Thanks")*

Hi,

Well, you need to add a condition on the current category before displaying the fields then. It's a bit more complex as you'll have to edit both the listing file to pass the current category to the products listing, and the listing_table file where the display of the products table is done for each category, but if you're a developer it shouldn't be a problem.

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

11 years 10 months ago [\#182903](#182903) by [deank](/forum/user/11974-deank "View deank's Profile")  Replied by *[deank](/forum/user/11974-deank "View deank's Profile")* on topic *[Display Product Table custom fields in lis views](/forum/4-how-to/861997-display-product-table-custom-fields-in-lis-views#182903 "Hi,  I have some products that have custom fields. I need to display then in the product list views, if they are present.  Does this need some customisation of the template, or am I missing a configuration option? I found the config option for the item custom fields, but not for product custom fields.  Many Thanks")*

So if I am understanding this correctly I will have to edit the category&gt;listing.php to pass the category groups to the products&gt;listing_table?

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 10 months ago [\#183021](#183021) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Display Product Table custom fields in lis views](/forum/4-how-to/861997-display-product-table-custom-fields-in-lis-views#183021 "Hi,  I have some products that have custom fields. I need to display then in the product list views, if they are present.  Does this need some customisation of the template, or am I missing a configuration option? I found the config option for the item custom fields, but not for product custom fields.  Many Thanks")*

Hi,

Yes, from the listing view set the current category to get it from the listing_table one.

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

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

Less More

- Posts: 18
- Thank you received: 0
-
-

11 years 8 months ago [\#188544](#188544) by [Geoffc](/forum/user/35341-geoffc "View Geoffc's Profile")  Replied by *[Geoffc](/forum/user/35341-geoffc "View Geoffc's Profile")* on topic *[Display Product Table custom fields in lis views](/forum/4-how-to/861997-display-product-table-custom-fields-in-lis-views#188544 "Hi,  I have some products that have custom fields. I need to display then in the product list views, if they are present.  Does this need some customisation of the template, or am I missing a configuration option? I found the config option for the item custom fields, but not for product custom fields.  Many Thanks")*

I've added this to "order / listing.php" and it doesn't display. Is the code correct? It is using code from the top of this thread:

&lt;?php
if(isset($this-&gt;row-&gt;ordername) &amp;&amp; !empty($this-&gt;row-&gt;ordername)){
echo $this-&gt;row-&gt;ordername; } ?&gt;

Geoff

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 8 months ago [\#188579](#188579) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Display Product Table custom fields in lis views](/forum/4-how-to/861997-display-product-table-custom-fields-in-lis-views#188579 "Hi,  I have some products that have custom fields. I need to display then in the product list views, if they are present.  Does this need some customisation of the template, or am I missing a configuration option? I found the config option for the item custom fields, but not for product custom fields.  Many Thanks")*

Hi,

The code previously given was for a product custom field in a product view.
But if you want to display an order custom field, so yes the code is correct.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg2MTk5Ny1kaXNwbGF5LXByb2R1Y3QtdGFibGUtY3VzdG9tLWZpZWxkcy1pbi1saXMtdmlld3M/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.449 seconds

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

[](#top)
