[Skip to main content](#vessel-content)

#   Order of brand names in product edition

##

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile") Topic Author
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

11 years 4 months ago [\#208276](#208276) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  *[Order of brand names in product edition](/forum/23-market-how-to/878135-order-of-brand-names-in-product-edition#208276 "-- HikaMarket version -- : 1.6.4  Hi Jerome,  Got another question: When selecting a brand during product edition, how can the brand names in the (dropdown) list be displayed in alphabetical order?  Default is &quot;ordering&quot;, obviously. Been through a bunch of files to see where it could be changed, but no luck. Your help is appreciated, as always.  Thanks!")* was created by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")*

-- HikaMarket version -- : 1.6.4

Hi Jerome,

Got another question:
When selecting a brand during product edition, how can the brand names in the (dropdown) list be displayed in alphabetical order?

Default is "ordering", obviously. Been through a bunch of files to see where it could be changed, but no luck. Your help is appreciated, as always.

Thanks!

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc4MTM1LW9yZGVyLW9mLWJyYW5kLW5hbWVzLWluLXByb2R1Y3QtZWRpdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

11 years 4 months ago [\#208278](#208278) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order of brand names in product edition](/forum/23-market-how-to/878135-order-of-brand-names-in-product-edition#208278 "-- HikaMarket version -- : 1.6.4  Hi Jerome,  Got another question: When selecting a brand during product edition, how can the brand names in the (dropdown) list be displayed in alphabetical order?  Default is &quot;ordering&quot;, obviously. Been through a bunch of files to see where it could be changed, but no luck. Your help is appreciated, as always.  Thanks!")*

Hi,

As you can see on our demo website, the brands namebox is already displaying brands in alphabetical order:
[ take.ms/48b6q](http://take.ms/48b6q)

Thus, I suppose that you say that because you modified the product edition to not use nameboxes with the code I provided there:
[ www.hikashop.com/forum/20-market-feature...frontend.html#208117](http://www.hikashop.com/forum/20-market-feature-requests/878100-don-t-use-nameboxes-in-frontend.html#208117)
Unfortunately, the normal brand dropdown has no dynamic option that you can change to change the ordering (unlike the namebox system).
So the only solution is to directly hack in the file administrator/components/com_hikashop/types/categorysub.php and change the line:
$query .= ' WHERE a.category_type = \''.$this-&gt;type.'\' AND a.category_parent_id!='.$parent.' ORDER BY a.category_ordering ASC';
to:
$query .= ' WHERE a.category_type = \''.$this-&gt;type.'\' AND a.category_parent_id!='.$parent.' ORDER BY a.category_name ASC';
Please note however that this will have repercussions on all the dropdowns used for category type elements (order status dropdowns, tax category dropdowns, etc).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc4MTM1LW9yZGVyLW9mLWJyYW5kLW5hbWVzLWluLXByb2R1Y3QtZWRpdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile") Topic Author
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

11 years 4 months ago [\#208359](#208359) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[Order of brand names in product edition](/forum/23-market-how-to/878135-order-of-brand-names-in-product-edition#208359 "-- HikaMarket version -- : 1.6.4  Hi Jerome,  Got another question: When selecting a brand during product edition, how can the brand names in the (dropdown) list be displayed in alphabetical order?  Default is &quot;ordering&quot;, obviously. Been through a bunch of files to see where it could be changed, but no luck. Your help is appreciated, as always.  Thanks!")*

Thank you, Nicolas, for helping the fool here building his exceptional case.

Yup, it's as you say: brands in single dropdown... of course. And I hear you regarding nameboxes - again, haha... ![;)](/media/kunena/emoticons/24.png ";)")

Obviously, I'm anything but a script pro, but can't it be made with a Code:

if(.....category_type == 'manufacturer') { $query............a.category_name ASC'; }else{ $query............a.category_ordering ASC'; }

or so? Guess I'm kidding, lol. If it were possible, you had done so already.

But then nothing to worry, I'm good with the order statuses being "the wrong way" now... a small price to pay.

On a side note, I apologise for not having noticed it being you in the other thread, too. Just so used to seeing Jerome here as the lonesome HM warrior!

Thanks again.

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc4MTM1LW9yZGVyLW9mLWJyYW5kLW5hbWVzLWluLXByb2R1Y3QtZWRpdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

11 years 4 months ago -  11 years 4 months ago [\#208360](#208360) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order of brand names in product edition](/forum/23-market-how-to/878135-order-of-brand-names-in-product-edition#208360 "-- HikaMarket version -- : 1.6.4  Hi Jerome,  Got another question: When selecting a brand during product edition, how can the brand names in the (dropdown) list be displayed in alphabetical order?  Default is &quot;ordering&quot;, obviously. Been through a bunch of files to see where it could be changed, but no luck. Your help is appreciated, as always.  Thanks!")*

Hi,

You can have such condition if you want. We don't need it on our end since we changed the system completely now and we're using nameboxes ![:)](/media/kunena/emoticons/3.png ":)")

No problem, I'm helping Jerome while he is in holidays.

Last edit: 11 years 4 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

The following user(s) said Thank You: [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc4MTM1LW9yZGVyLW9mLWJyYW5kLW5hbWVzLWluLXByb2R1Y3QtZWRpdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.045 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
