Could I get alphabetical sort in manufacture filter?

  • Posts: 2293
  • Thank you received: 315
5 years 1 month ago #304662

-- 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.

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
5 years 1 month ago #304664

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:

$query='SELECT a.* FROM '.hikashop_table('category').' AS a '.$left.' WHERE ('.implode(') AND (',$filters).') ORDER BY a.category_ordering ASC';
to:
$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.

  • Posts: 2293
  • Thank you received: 315
5 years 1 month ago #304707

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.

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
5 years 1 month ago #304713

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.

  • Posts: 2293
  • Thank you received: 315
5 years 1 month ago #304762

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.

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
5 years 1 month ago #304763

Hi,

It will indeed.

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

Time to create page: 0.066 seconds
Powered by Kunena Forum