Could I get alphabetical sort in manufacture filter?

  • Posts: 2117
  • Thank you received: 291
  • Hikashop Multisite
1 week 6 days 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: 65159
  • Thank you received: 9465
  • MODERATOR
1 week 5 days 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: 2117
  • Thank you received: 291
  • Hikashop Multisite
1 week 4 days 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: 65159
  • Thank you received: 9465
  • MODERATOR
1 week 4 days 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: 2117
  • Thank you received: 291
  • Hikashop Multisite
1 week 3 days 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: 65159
  • Thank you received: 9465
  • MODERATOR
1 week 3 days ago #304763

Hi,

It will indeed.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum