Skip to main content

Category's Custom Field Sorting

More
15 years 4 months ago #16194 by vizeurope
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.

More
15 years 4 months ago #16196 by nicolas
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.

More
15 years 4 months ago #16205 by vizeurope
That's it. It works now.
Thanks.

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

Time to create page: 0.136 seconds
Powered by Kunena Forum