brand order

  • Posts: 82
  • Thank you received: 1
9 years 1 month ago #230173

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.6.0

I created a Brand filter in my category pages. How can I arrange the brands alphabetically whithout doing it in admin?
I have hundreds of brands always changing it will take

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
9 years 1 month ago #230187

Hello,

I'm not really sure for what your looking for, from what I understand there is several solutions, but :
- How work your brands filter?
- Your category page only displaying brands?
- Why do you want a"alphabetically arrange" from front end?

Thanks to be more specific.

Regards,

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

  • Posts: 82
  • Thank you received: 1
9 years 1 month ago #230883

Hi philip,
this is a page of my site.
if you click 'marca' filter you can see brands are not alphabetically ordered
www.uniontrade.info/prodotti-etnici-da-t...-il-mondo/alghe.html

if I arrange the brands in back end the order change in filter and all is ok but
since in admin there are something like 200 brands always changing I'm searchin a way the filter automatically order names alphabetically.
I hope I've been more specific now.

thank you!
elena

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

  • Posts: 13201
  • Thank you received: 2322
9 years 1 month ago #230893

Hi,

You will have to edit the file "administrators/components/com_hikashop/classes/filter.php" and in the function "getManufacturers()" replace the line:

$query='SELECT a.* FROM '.hikashop_table('category').' AS a '.$left.' WHERE a.category_type="manufacturer" AND a.category_parent_id!=\'1\' '.$optionElement.' AND a.category_published=1 ORDER BY a.category_ordering ASC';
By:
$query='SELECT a.* FROM '.hikashop_table('category').' AS a '.$left.' WHERE a.category_type="manufacturer" AND a.category_parent_id!=\'1\' '.$optionElement.' AND a.category_published=1 ORDER BY a.category_name ASC';

We will see if we can't add an option for that.

The following user(s) said Thank You: lensky

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

  • Posts: 82
  • Thank you received: 1
9 years 1 month ago #231035

THANK YOU SO MUCH!!!!!!!!!!
THAT'S PERFECT FOR ME.

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

  • Posts: 1
  • Thank you received: 0
6 years 2 months ago #302699

how to sort brands alphbetically in hikashop. i have show in this format whats the solution to sort in alphabetically.

Attachments:

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
6 years 2 months ago #302707

Hello,

You have to reproduce this kind of settings in your Item Menu configuration :



Regards

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

Time to create page: 0.100 seconds
Powered by Kunena Forum