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

#   product listing table, are custom fields possible?

##

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

Less More

- Posts: 37
- Thank you received: 2
-
-

13 years 10 months ago -  13 years 10 months ago [\#82214](#82214) by [karlvann](/forum/user/7701-karlvann "View karlvann's Profile")  *[product listing table, are custom fields possible?](/forum/2-general-talk-about-hikashop/76777-product-listing-table-are-custom-fields-possible#82214 "My goal is to display my products in 1 column, table view with 3 custom fields displayed in the same format as vote, price and product.  I believe I need to add them to, product / listing&#95;table, but I'm not sure how.  I've found a few threads that discuss this however I haven't found one that discusses my specific need.  I have been able to display a custom field using the default settings, however this display doesn't suit my needs as I need them displayed as columns.  My main purpose is to be able to display my products in 1 column and easily compare custom fields, My coding is experience is pretty much non-existent. If you could suggest a way which I could achieve this I would be very grateful, thanks..  Here is an example of what I'm after")* was created by *[karlvann](/forum/user/7701-karlvann "View karlvann's Profile")*

My goal is to display my products in 1 column, table view with 3 custom fields displayed in the same format as vote, price and product.

I believe I need to add them to, product / listing_table, but I'm not sure how.

I've found a few threads that discuss this however I haven't found one that discusses my specific need.

I have been able to display a custom field using the default settings, however this display doesn't suit my needs as I need them displayed as columns.

My main purpose is to be able to display my products in 1 column and easily compare custom fields, My coding is experience is pretty much non-existent. If you could suggest a way which I could achieve this I would be very grateful, thanks..

Here is an example of what I'm after

[ ![resteasy-2012-12-16-00-51-59.jpg](/forum/attachment/7597) ](/forum/attachment/7597 "...6-00-51-59.jpg")

- [ ![resteasy&#95;2012-12-16&#95;00-51-59.png](/forum/attachment/7596) ](/forum/attachment/7596 "...6&#95;00-51-59.png") [ ](/forum/attachment/7596?download=1 "...6&#95;00-51-59.png")
- [ ![resteasy-2012-12-16-00-51-59.jpg](/forum/attachment/7597) ](/forum/attachment/7597 "...6-00-51-59.jpg") [ ](/forum/attachment/7597?download=1 "...6-00-51-59.jpg")

Last edit: 13 years 10 months ago by [karlvann](/forum/user/7701-karlvann "View karlvann's Profile"). Reason: update pic

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2Nzc3LXByb2R1Y3QtbGlzdGluZy10YWJsZS1hcmUtY3VzdG9tLWZpZWxkcy1wb3NzaWJsZT90bXBsPW1hcmtkb3du) or [Create an account](/register) 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 10 months ago [\#82344](#82344) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[product listing table, are custom fields possible?](/forum/2-general-talk-about-hikashop/76777-product-listing-table-are-custom-fields-possible#82344 "My goal is to display my products in 1 column, table view with 3 custom fields displayed in the same format as vote, price and product.  I believe I need to add them to, product / listing&#95;table, but I'm not sure how.  I've found a few threads that discuss this however I haven't found one that discusses my specific need.  I have been able to display a custom field using the default settings, however this display doesn't suit my needs as I need them displayed as columns.  My main purpose is to be able to display my products in 1 column and easily compare custom fields, My coding is experience is pretty much non-existent. If you could suggest a way which I could achieve this I would be very grateful, thanks..  Here is an example of what I'm after")*

Hi,

You just have to edit the view "product / listing_table" and add your needed columns, in the columns you have to put "$row-&gt;customFieldName". And it will display the value of the custom field of each product.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2Nzc3LXByb2R1Y3QtbGlzdGluZy10YWJsZS1hcmUtY3VzdG9tLWZpZWxkcy1wb3NzaWJsZT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 37
- Thank you received: 2
-
-

13 years 10 months ago -  13 years 10 months ago [\#82401](#82401) by [karlvann](/forum/user/7701-karlvann "View karlvann's Profile")  Replied by *[karlvann](/forum/user/7701-karlvann "View karlvann's Profile")* on topic *[product listing table, are custom fields possible?](/forum/2-general-talk-about-hikashop/76777-product-listing-table-are-custom-fields-possible#82401 "My goal is to display my products in 1 column, table view with 3 custom fields displayed in the same format as vote, price and product.  I believe I need to add them to, product / listing&#95;table, but I'm not sure how.  I've found a few threads that discuss this however I haven't found one that discusses my specific need.  I have been able to display a custom field using the default settings, however this display doesn't suit my needs as I need them displayed as columns.  My main purpose is to be able to display my products in 1 column and easily compare custom fields, My coding is experience is pretty much non-existent. If you could suggest a way which I could achieve this I would be very grateful, thanks..  Here is an example of what I'm after")*

I may be in over my head here but I guess the columns are here somewhere, I'm shop owner that is just basically winging it with no coding skills.

If it's not suitable to do this, thats ok I'll just put it in the commercial jobs section as I understand there has to be a limit to the support you provide..
Code:

$columns = 1; ?&gt; &lt;table class="hikashop_products_table adminlist table table-striped table-hover" cellpadding="1"&gt; &lt;thead&gt; &lt;tr&gt; &lt;?php if($this-&gt;config-&gt;get('thumbnail')){ $columns++; ?&gt; &lt;th class="hikashop_product_image title" align="center"&gt; &lt;?php echo JText::_( 'HIKA_IMAGE' );?&gt; &lt;/th&gt; &lt;?php } ?&gt; &lt;th class="hikashop_product_name title" align="center"&gt; &lt;?php echo JText::_( 'PRODUCT' );?&gt; &lt;/th&gt; &lt;?php if ($this-&gt;config-&gt;get('show_code')) { $columns++;?&gt; &lt;th class="hikashop_product_code_title" align="center"&gt; &lt;?php echo JText::_( 'PRODUCT_CODE' ); ?&gt; &lt;/th&gt; &lt;?php } ?&gt; &lt;?php if($this-&gt;params-&gt;get('show_vote_product')){ ?&gt; &lt;th class="hikashop_product_price title" align="center"&gt; &lt;?php echo JText::_('VOTE'); ?&gt; &lt;/th&gt; &lt;?php } ?&gt; &lt;?php if($this-&gt;params-&gt;get('show_price','-1')=='-1'){ $config =&amp; hikashop_config(); $this-&gt;params-&gt;set('show_price',$config-&gt;get('show_price')); } if($this-&gt;params-&gt;get('show_price')){ $columns++; ?&gt; &lt;th class="hikashop_product_price title" align="center"&gt; &lt;?php echo JText::_('PRICE'); ?&gt; &lt;/th&gt; &lt;?php } ?&gt; &lt;?php if($this-&gt;params-&gt;get('add_to_cart') &#124;&#124; $this-&gt;params-&gt;get('add_to_wishlist')){ $columns++; ?&gt; &lt;th class="hikashop_product_add_to_cart title" align="center"&gt; &lt;/th&gt; &lt;?php } ?&gt; &lt;?php if(JRequest::getVar('hikashop_front_end_main',0) &amp;&amp; JRequest::getVar('task')=='listing' &amp;&amp;

Last edit: 13 years 10 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: using code tag

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2Nzc3LXByb2R1Y3QtbGlzdGluZy10YWJsZS1hcmUtY3VzdG9tLWZpZWxkcy1wb3NzaWJsZT90bXBsPW1hcmtkb3du) 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: 86322
- Thank you received: 14279
-
-

13 years 10 months ago [\#82518](#82518) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[product listing table, are custom fields possible?](/forum/2-general-talk-about-hikashop/76777-product-listing-table-are-custom-fields-possible#82518 "My goal is to display my products in 1 column, table view with 3 custom fields displayed in the same format as vote, price and product.  I believe I need to add them to, product / listing&#95;table, but I'm not sure how.  I've found a few threads that discuss this however I haven't found one that discusses my specific need.  I have been able to display a custom field using the default settings, however this display doesn't suit my needs as I need them displayed as columns.  My main purpose is to be able to display my products in 1 column and easily compare custom fields, My coding is experience is pretty much non-existent. If you could suggest a way which I could achieve this I would be very grateful, thanks..  Here is an example of what I'm after")*

That's the column name for the title "product": Code:

&lt;th class="hikashop_product_name title" align="center"&gt; &lt;?php echo JText::_( 'PRODUCT' );?&gt; &lt;/th&gt;

But there is also the code for each value (the name of the product) which is: Code:

&lt;td class="hikashop_product_name_row"&gt; &lt;span class="hikashop_product_name"&gt; &lt;?php if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt; &lt;a href="&lt;?php echo $link;?&gt;"&gt; &lt;?php } echo $this-&gt;row-&gt;product_name; if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt; &lt;/a&gt; &lt;?php } ?&gt; &lt;/span&gt; &lt;/td&gt;

So for example for the support custom field, you would have to add first a column title before the first piece of code I gave: Code:

&lt;th class="hikashop_support_title" align="center"&gt;support&lt;/th&gt;

and then add the column value before the second piece of code I gave: Code:

&lt;td&gt;&lt;?php echo $this-&gt;row-&gt;support; ?&gt;&lt;/td&gt;

You have all the pieces. If you can't do it, I would indeed recommend to find a developer.

The following user(s) said Thank You: [karlvann](/forum/user/7701-karlvann "View karlvann's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2Nzc3LXByb2R1Y3QtbGlzdGluZy10YWJsZS1hcmUtY3VzdG9tLWZpZWxkcy1wb3NzaWJsZT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 37
- Thank you received: 2
-
-

13 years 10 months ago [\#82519](#82519) by [karlvann](/forum/user/7701-karlvann "View karlvann's Profile")  Replied by *[karlvann](/forum/user/7701-karlvann "View karlvann's Profile")* on topic *[product listing table, are custom fields possible?](/forum/2-general-talk-about-hikashop/76777-product-listing-table-are-custom-fields-possible#82519 "My goal is to display my products in 1 column, table view with 3 custom fields displayed in the same format as vote, price and product.  I believe I need to add them to, product / listing&#95;table, but I'm not sure how.  I've found a few threads that discuss this however I haven't found one that discusses my specific need.  I have been able to display a custom field using the default settings, however this display doesn't suit my needs as I need them displayed as columns.  My main purpose is to be able to display my products in 1 column and easily compare custom fields, My coding is experience is pretty much non-existent. If you could suggest a way which I could achieve this I would be very grateful, thanks..  Here is an example of what I'm after")*

That should be fine now, This is perfect, thanks so much.

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

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

[](#top)
