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

#   Custom Sortable Columns on Product Display Tables

##

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

Less More

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

14 years 6 months ago [\#50568](#50568) by [vuudoo85](/forum/user/7409-vuudoo85 "View vuudoo85's Profile")  *[Custom Sortable Columns on Product Display Tables](/forum/4-how-to/50568-custom-sortable-columns-on-product-display-tables#50568 "Hello,  I would like:  1) To have several columns that display custom-field attributes of the product instead of just three columns.  Per the picture above, I would like to have four additional columns, Carat Weight, Color, Shape, and Clarity in the product display table as opposed to having all those attributes in one column.  2) Make it so clicking on the title of the column will sort between ascending and descending.  Thank you,  Jason")* was created by *[vuudoo85](/forum/user/7409-vuudoo85 "View vuudoo85's Profile")*

Hello,

I would like:

1) To have several columns that display custom-field attributes of the product instead of just three columns.

[ ![product-display-table.jpg](/forum/attachment/3884) ](/forum/attachment/3884 "...play-table.jpg")

Per the picture above, I would like to have four additional columns, Carat Weight, Color, Shape, and Clarity in the product display table as opposed to having all those attributes in one column.

2) Make it so clicking on the title of the column will sort between ascending and descending.

Thank you,

Jason

- [ ![product-display-table.jpg](/forum/attachment/3884) ](/forum/attachment/3884 "...play-table.jpg") [ ](/forum/attachment/3884?download=1 "...play-table.jpg")

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

Less More

- Posts: 86587
- Thank you received: 14326
-
-

14 years 6 months ago [\#50661](#50661) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Custom Sortable Columns on Product Display Tables](/forum/4-how-to/50568-custom-sortable-columns-on-product-display-tables#50661 "Hello,  I would like:  1) To have several columns that display custom-field attributes of the product instead of just three columns.  Per the picture above, I would like to have four additional columns, Carat Weight, Color, Shape, and Clarity in the product display table as opposed to having all those attributes in one column.  2) Make it so clicking on the title of the column will sort between ascending and descending.  Thank you,  Jason")*

1. You will have to edit the file "listing_table" of the view "product" via the menu Display-&gt;Views and change the code there in order to add your columns. Custom product field data can be displayed easily like that:
&lt;?php echo $this-&gt;row-&gt;COLUMN_NAME; ?&gt;
where COLUMN_NAME is the name of the column of the custom product field.

2. You can do that at the same place. If you're not familiar with Joomla php coding, it's a lot harder than point 1 though.

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

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