Category's Custom Field Sorting

  • Posts: 3
  • Thank you received: 1
13 years 6 months ago #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.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 6 months ago #16196

Hi,

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

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

That should greatly help :)

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 1
13 years 6 months ago #16205

That's it. It works now.
Thanks.

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum