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

#   Category's Custom Field Sorting

##

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

Less More

- Posts: 3
- Thank you received: 1
-
-

15 years 5 months ago [\#16194](#16194) by [vizeurope](/forum/user/2101-vizeurope "View vizeurope's Profile")  *[Category's Custom Field Sorting](/forum/3-bug-report/16194-categorys-custom-field-sorting#16194 "Hi there,  Here is a small bug on back-end with categories' custom field.  When you try to sort cateogries by a custom field (in my case it's a dropbox unique selection field), no cateogries are shown.  Thanks for the resolution of this bug.")* was created by *[vizeurope](/forum/user/2101-vizeurope "View vizeurope's Profile")*

Hi there,

Here is a small bug on back-end with categories' custom field.

When you try to sort cateogries by a custom field (in my case it's a dropbox unique selection field), no cateogries are shown.

Thanks for the resolution of this bug.

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

15 years 5 months ago [\#16196](#16196) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Category's Custom Field Sorting](/forum/3-bug-report/16194-categorys-custom-field-sorting#16196 "Hi there,  Here is a small bug on back-end with categories' custom field.  When you try to sort cateogries by a custom field (in my case it's a dropbox unique selection field), no cateogries are shown.  Thanks for the resolution of this bug.")*

Hi,

Could you try to edit the file administrator/components/com_hikashop/views/category/tmpl/listing.php and change the line:
echo '&lt;th class="title"&gt;'.JHTML::_('grid.sort', $this-&gt;fieldsClass-&gt;trans($field-&gt;field_realname), 'a'.$field-&gt;field_namekey, $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ).'&lt;/th&gt;';

to:
echo '&lt;th class="title"&gt;'.JHTML::_('grid.sort', $this-&gt;fieldsClass-&gt;trans($field-&gt;field_realname), 'a.'.$field-&gt;field_namekey, $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ).'&lt;/th&gt;';

That should greatly help ![:)](/media/kunena/emoticons/3.png ":)")

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

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

Less More

- Posts: 3
- Thank you received: 1
-
-

15 years 5 months ago [\#16205](#16205) by [vizeurope](/forum/user/2101-vizeurope "View vizeurope's Profile")  Replied by *[vizeurope](/forum/user/2101-vizeurope "View vizeurope's Profile")* on topic *[Re: Category's Custom Field Sorting](/forum/3-bug-report/16194-categorys-custom-field-sorting#16205 "Hi there,  Here is a small bug on back-end with categories' custom field.  When you try to sort cateogries by a custom field (in my case it's a dropbox unique selection field), no cateogries are shown.  Thanks for the resolution of this bug.")*

That's it. It works now.
Thanks.

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

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