Skip to main content

Could I get alphabetical sort in manufacture filter?

7 years 8 months ago #304662 by progreccor
-- HikaShop version -- : 4.0.3

Is it real to sort manufactures inf the filter?

Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!

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

7 years 8 months ago #304664 by nicolas
Hi,

The brands are sorted based on their "order" value (you can see it on the listing of brands in your backend).
There is no option to change that.
If you really want to change it for yourself, you can change the line:
Code:
$query='SELECT a.* FROM '.hikashop_table('category').' AS a '.$left.' WHERE ('.implode(') AND (',$filters).') ORDER BY a.category_ordering ASC';
to:
Code:
$query='SELECT a.* FROM '.hikashop_table('category').' AS a '.$left.' WHERE ('.implode(') AND (',$filters).') ORDER BY a.category_name ASC';
in the file administrator/components/com_hikashop/classes/filter.php

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

7 years 8 months ago #304707 by progreccor
I mean that I need alpabetical sort of manufactures on the front - not on the administrator interface...

Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!

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

7 years 8 months ago #304713 by nicolas
Hi,

This change will alphabetically sort the manufacturers in the frontend when using a manufacturer filter.

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

7 years 8 months ago #304762 by progreccor
But this will be overwritten after next update of hikashop.
Am I right?

Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!

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

7 years 8 months ago #304763 by nicolas
Hi,

It will indeed.

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

Time to create page: 0.051 seconds
Powered by Kunena Forum