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

#   Custom Fields

##

- **[Wings](/forum/user/11948-wings "View Wings's Profile")**
- [![Wings's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/crossing_kangaroo.png)](/forum/user/11948-wings "View Wings's Profile") Topic Author
- [ Offline](/forum/user/11948-wings)

Less More

- Posts: 12
- Thank you received: 0
-
-
-
- [](http://piekiec.eu)
-

13 years 5 months ago -  13 years 5 months ago [\#106333](#106333) by [Wings](/forum/user/11948-wings "View Wings's Profile")  *[Custom Fields](/forum/4-how-to/82936-custom-fields#106333 "Custom fields are not visible in any listing, not in list, not in table and not in div.    piekiec.eu/en/ipc-j-std-001es-space/product/listing.html  How can I add them?  Thanks")* was created by *[Wings](/forum/user/11948-wings "View Wings's Profile")*

Custom fields are not visible in any listing, not in list, not in table and not in div.

[ piekiec.eu/en/ipc-j-std-001es-space/product/listing.html](http://piekiec.eu/en/ipc-j-std-001es-space/product/listing.html)

How can I add them?

Thanks

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

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 5 months ago [\#106343](#106343) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Custom Fields](/forum/4-how-to/82936-custom-fields#106343 "Custom fields are not visible in any listing, not in list, not in table and not in div.    piekiec.eu/en/ipc-j-std-001es-space/product/listing.html  How can I add them?  Thanks")*

Hi there,

Product listing don't display custom field by default.
If you want to do so, you'll have to add some code to one of this view (Display&gt;View). For example in product/listing_div, you can load the customs fields with:
Code:

$itemFields = $this-&gt;fieldsClass-&gt;getFields('frontcomp',$this-&gt;row,'product','checkout&amp;task=state');

and then display it with: Code:

foreach($itemFields as $fieldName =&gt; $oneExtraField) { if(!isset($this-&gt;row-&gt;$fieldName)) continue; echo $this-&gt;fieldsClass-&gt;show($oneExtraField,trim($this-&gt;row-&gt;$fieldName)); }

The following user(s) said Thank You: [Wings](/forum/user/11948-wings "View Wings's Profile")

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

- **[Wings](/forum/user/11948-wings "View Wings's Profile")**
- [![Wings's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/crossing_kangaroo.png)](/forum/user/11948-wings "View Wings's Profile") Topic Author
- [ Offline](/forum/user/11948-wings)

Less More

- Posts: 12
- Thank you received: 0
-
-
-
- [](http://piekiec.eu)
-

13 years 5 months ago [\#106837](#106837) by [Wings](/forum/user/11948-wings "View Wings's Profile")  Replied by *[Wings](/forum/user/11948-wings "View Wings's Profile")* on topic *[Custom Fields](/forum/4-how-to/82936-custom-fields#106837 "Custom fields are not visible in any listing, not in list, not in table and not in div.    piekiec.eu/en/ipc-j-std-001es-space/product/listing.html  How can I add them?  Thanks")*

Ok, Thanks! Now I get the fields back, not the label... [ piekiec.eu/en/ipc-j-std-001es/product/listing.html](http://piekiec.eu/en/ipc-j-std-001es/product/listing.html)

Can you point me to an example so I can get the custom fields block like here? [ piekiec.eu/en/hikashop/product/171-10-06...erlands-english.html](http://piekiec.eu/en/hikashop/product/171-10-06-2013-ipc-j-std-001es-space-heerlen-the-netherlands-english.html)

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 5 months ago [\#106848](#106848) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Custom Fields](/forum/4-how-to/82936-custom-fields#106848 "Custom fields are not visible in any listing, not in list, not in table and not in div.    piekiec.eu/en/ipc-j-std-001es-space/product/listing.html  How can I add them?  Thanks")*

The way custom fields are generated depends of the view show_block_custom_main of product (in Display&gt;Views).
Just replace the foreach() I gave you by something similar to this view and it should display fine.
If you make a copy/paste, don't forget to replace $this-&gt;fields by $itemFields in the foreach

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

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

[](#top)
