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

#   Display Custom Fields in Product Listing

##

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

Less More

- Posts: 95
- Thank you received: 1
-
-

12 years 3 months ago [\#164980](#164980) by [wideservices](/forum/user/29752-wideservices "View wideservices's Profile")  *[Display Custom Fields in Product Listing](/forum/25-install-update/869869-display-custom-fields-in-product-listing#164980 "Hi,  I was trying to find how to display the custom fields of the products , not only inside the product, but in the product listing menu. In the configuration and in the content menu I have enabled the custom fields but they only appear inside the product. Do we have any option for this?  Thanks in advance")* was created by *[wideservices](/forum/user/29752-wideservices "View wideservices's Profile")*

Hi,

I was trying to find how to display the custom fields of the products , not only inside the product, but in the product listing menu. In the configuration and in the content menu I have enabled the custom fields but they only appear inside the product. Do we have any option for this?

Thanks in advance

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg2OTg2OS1kaXNwbGF5LWN1c3RvbS1maWVsZHMtaW4tcHJvZHVjdC1saXN0aW5nP3RtcGw9bWFya2Rvd24=) 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)
-

12 years 3 months ago [\#164986](#164986) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Display Custom Fields in Product Listing](/forum/25-install-update/869869-display-custom-fields-in-product-listing#164986 "Hi,  I was trying to find how to display the custom fields of the products , not only inside the product, but in the product listing menu. In the configuration and in the content menu I have enabled the custom fields but they only appear inside the product. Do we have any option for this?  Thanks in advance")*

Hi,

Do you mean custom fields of the table "product" ?
If it is, you can edit the view "product / listing_img_title" and add the code: Code:

&lt;?php echo $this-&gt;row-&gt;CUSTOMFILED_NAME; ?&gt;

At the desired place and the value of the custom field will be displayed on the listing.

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

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

Less More

- Posts: 30
- Thank you received: 0
-
-

11 years 1 month ago [\#216127](#216127) by [withram](/forum/user/38217-withram "View withram's Profile")  Replied by *[withram](/forum/user/38217-withram "View withram's Profile")* on topic *[Display Custom Fields in Product Listing](/forum/25-install-update/869869-display-custom-fields-in-product-listing#216127 "Hi,  I was trying to find how to display the custom fields of the products , not only inside the product, but in the product listing menu. In the configuration and in the content menu I have enabled the custom fields but they only appear inside the product. Do we have any option for this?  Thanks in advance")*

Hello! Could you please help me? What should I add
1) to display the name of the field
2) to display all the fields automatically, if it's possible

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg2OTg2OS1kaXNwbGF5LWN1c3RvbS1maWVsZHMtaW4tcHJvZHVjdC1saXN0aW5nP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14300
-
-

11 years 1 month ago -  11 years 4 weeks ago [\#216134](#216134) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display Custom Fields in Product Listing](/forum/25-install-update/869869-display-custom-fields-in-product-listing#216134 "Hi,  I was trying to find how to display the custom fields of the products , not only inside the product, but in the product listing menu. In the configuration and in the content menu I have enabled the custom fields but they only appear inside the product. Do we have any option for this?  Thanks in advance")*

Hi,

In that case you can do like that: Code:

&lt;?php $fieldClass = hikashop_get('class.field'); $productFields = $fieldClass-&gt;getFields('frontcomp', $this-&gt;row, 'product', 'checkout&amp;task=state'); foreach ($productFields as $fieldName =&gt; $oneExtraField) { $value = ''; if(isset($this-&gt;row-&gt;$fieldName)) $value = trim($this-&gt;row-&gt;$fieldName); if(!empty($value) &#124;&#124; $value === '0') { echo $fieldClass-&gt;getFieldName($oneExtraField); echo $fieldClass-&gt;show($oneExtraField,$value); } } ?&gt;

Last edit: 11 years 4 weeks ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile"). Reason: fixed typo

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

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

Less More

- Posts: 30
- Thank you received: 0
-
-

11 years 4 weeks ago -  11 years 4 weeks ago [\#217197](#217197) by [withram](/forum/user/38217-withram "View withram's Profile")  Replied by *[withram](/forum/user/38217-withram "View withram's Profile")* on topic *[Display Custom Fields in Product Listing](/forum/25-install-update/869869-display-custom-fields-in-product-listing#217197 "Hi,  I was trying to find how to display the custom fields of the products , not only inside the product, but in the product listing menu. In the configuration and in the content menu I have enabled the custom fields but they only appear inside the product. Do we have any option for this?  Thanks in advance")*

Hi, nicolas! Sorry for the late answer. Thank you for the support, but there is an error somewhere in your code. After this hack product page looks like this: [ joxi.ru/brREnYPUKEb8A1](http://joxi.ru/brREnYPUKEb8A1)
Without it: [ joxi.ru/Dr8W9NJTw5bEA6](http://joxi.ru/Dr8W9NJTw5bEA6)

If i modify the last string like this: Code:

echo $fieldClass-&gt;show($oneExtraField,$value);

, it works, but it prints only the first field.

Last edit: 11 years 4 weeks ago by [withram](/forum/user/38217-withram "View withram's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg2OTg2OS1kaXNwbGF5LWN1c3RvbS1maWVsZHMtaW4tcHJvZHVjdC1saXN0aW5nP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14300
-
-

11 years 4 weeks ago [\#217203](#217203) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display Custom Fields in Product Listing](/forum/25-install-update/869869-display-custom-fields-in-product-listing#217203 "Hi,  I was trying to find how to display the custom fields of the products , not only inside the product, but in the product listing menu. In the configuration and in the content menu I have enabled the custom fields but they only appear inside the product. Do we have any option for this?  Thanks in advance")*

Hi,

Yes, there was a typo. Sorry for that.
I however, don't see why only the first field would display. Are you sure that the others are activated to be displayed on the frontend?

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

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

Less More

- Posts: 30
- Thank you received: 0
-
-

11 years 4 weeks ago [\#217286](#217286) by [withram](/forum/user/38217-withram "View withram's Profile")  Replied by *[withram](/forum/user/38217-withram "View withram's Profile")* on topic *[Display Custom Fields in Product Listing](/forum/25-install-update/869869-display-custom-fields-in-product-listing#217286 "Hi,  I was trying to find how to display the custom fields of the products , not only inside the product, but in the product listing menu. In the configuration and in the content menu I have enabled the custom fields but they only appear inside the product. Do we have any option for this?  Thanks in advance")*

Yes, other fields are displayed at the product page.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg2OTg2OS1kaXNwbGF5LWN1c3RvbS1maWVsZHMtaW4tcHJvZHVjdC1saXN0aW5nP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14300
-
-

11 years 4 weeks ago [\#217318](#217318) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display Custom Fields in Product Listing](/forum/25-install-update/869869-display-custom-fields-in-product-listing#217318 "Hi,  I was trying to find how to display the custom fields of the products , not only inside the product, but in the product listing menu. In the configuration and in the content menu I have enabled the custom fields but they only appear inside the product. Do we have any option for this?  Thanks in advance")*

Hi,

Can you provide some screenshot of the settings of these custom fields ?

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

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

Less More

- Posts: 30
- Thank you received: 0
-
-

11 years 1 week ago [\#219595](#219595) by [withram](/forum/user/38217-withram "View withram's Profile")  Replied by *[withram](/forum/user/38217-withram "View withram's Profile")* on topic *[Display Custom Fields in Product Listing](/forum/25-install-update/869869-display-custom-fields-in-product-listing#219595 "Hi,  I was trying to find how to display the custom fields of the products , not only inside the product, but in the product listing menu. In the configuration and in the content menu I have enabled the custom fields but they only appear inside the product. Do we have any option for this?  Thanks in advance")*

Hi! I continue Hikashop customizing, so this feature is still actual.
Now it seems that your code have some mistake in
" if(!empty($value) &#124;&#124; $value === '0')"
If i remove this string, I can see customfields names. But values are still unavailable. Maybe the mistake is in "$value"?
Where can I find the list of Hikashop methods and variables?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

11 years 1 week ago [\#219598](#219598) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Display Custom Fields in Product Listing](/forum/25-install-update/869869-display-custom-fields-in-product-listing#219598 "Hi,  I was trying to find how to display the custom fields of the products , not only inside the product, but in the product listing menu. In the configuration and in the content menu I have enabled the custom fields but they only appear inside the product. Do we have any option for this?  Thanks in advance")*

Hi,

I checked the Nicolas code and I looks good ; there is no issue with the line you mentionned. On the contrary, the line is required.

[ www.hikashop.com/support/support/documen...r-documentation.html](http://www.hikashop.com/support/support/documentation/62-hikashop-developer-documentation.html)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 30
- Thank you received: 0
-
-

11 years 4 days ago [\#219899](#219899) by [withram](/forum/user/38217-withram "View withram's Profile")  Replied by *[withram](/forum/user/38217-withram "View withram's Profile")* on topic *[Display Custom Fields in Product Listing](/forum/25-install-update/869869-display-custom-fields-in-product-listing#219899 "Hi,  I was trying to find how to display the custom fields of the products , not only inside the product, but in the product listing menu. In the configuration and in the content menu I have enabled the custom fields but they only appear inside the product. Do we have any option for this?  Thanks in advance")*

Ok, thanks, guys. I thinks this is our issue.

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

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