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

#   Frontend - Vendor list field in the wrong order

##

- **[Marti](/forum/user/2853-marti "View Marti's Profile")**
- [![Marti's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2853.png)](/forum/user/2853-marti "View Marti's Profile") Topic Author
- [ Offline](/forum/user/2853-marti)

Less More

- Posts: 111
- Thank you received: 19
-

4 years 6 months ago [\#340640](#340640) by [Marti](/forum/user/2853-marti "View Marti's Profile")  *[Frontend - Vendor list field in the wrong order](/forum/23-market-how-to/904214-frontend-vendor-list-field-in-the-wrong-order#340640 "-- url of the page with the problem -- :   sofleurs.fr  -- HikaShop version -- : 4.5.0 -- HikaMarket version -- : 4.0.0 -- Joomla version -- : 3.10.8 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Firefox and Chrome last version  Hello, I have created a &quot;select&#95;vendor&quot; field that is displayed at checkout. The problem is that when I select the drop down list view, the sellers are displayed in the order of their registration and I need them to be displayed in alphanumeric/alphabetical order. If I select the Namebox view, the order is correct but only some of the sellers are displayed. If I select the Popup view, the whole site is displayed in the popup with a message that the seller has expired and there is no list of vendors... How can I change the display to a drop-down list with alphanumeric/alphabetical order? Thanks for your help")* was created by *[Marti](/forum/user/2853-marti "View Marti's Profile")*

-- url of the page with the problem -- : [ sofleurs.fr](https://sofleurs.fr)
-- HikaShop version -- : 4.5.0
-- HikaMarket version -- : 4.0.0
-- Joomla version -- : 3.10.8
-- PHP version -- : 7.4
-- Browser(s) name and version -- : Firefox and Chrome last version

Hello,
I have created a "select_vendor" field that is displayed at checkout.
The problem is that when I select the drop down list view, the sellers are displayed in the order of their registration and I need them to be displayed in alphanumeric/alphabetical order.
If I select the Namebox view, the order is correct but only some of the sellers are displayed.
If I select the Popup view, the whole site is displayed in the popup with a message that the seller has expired and there is no list of vendors...
How can I change the display to a drop-down list with alphanumeric/alphabetical order?
Thanks for your help

- [ ![liste-vendeurs.png](/forum/attachment/54629) ](/forum/attachment/54629 "...e-vendeurs.png") [ ](/forum/attachment/54629?download=1 "...e-vendeurs.png")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

4 years 6 months ago [\#340674](#340674) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Frontend - Vendor list field in the wrong order](/forum/23-market-how-to/904214-frontend-vendor-list-field-in-the-wrong-order#340674 "-- url of the page with the problem -- :   sofleurs.fr  -- HikaShop version -- : 4.5.0 -- HikaMarket version -- : 4.0.0 -- Joomla version -- : 3.10.8 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Firefox and Chrome last version  Hello, I have created a &quot;select&#95;vendor&quot; field that is displayed at checkout. The problem is that when I select the drop down list view, the sellers are displayed in the order of their registration and I need them to be displayed in alphanumeric/alphabetical order. If I select the Namebox view, the order is correct but only some of the sellers are displayed. If I select the Popup view, the whole site is displayed in the popup with a message that the seller has expired and there is no list of vendors... How can I change the display to a drop-down list with alphanumeric/alphabetical order? Thanks for your help")*

Hello,

Edit the file "administrator\components\com_hikamarket\types\vendor_selection.php" and replace the line Code:

protected function getVendorList($filters = array(), $sort = 'id') {

By Code:

protected function getVendorList($filters = array(), $sort = 'name') {

And it will change the default sorting for the vendors.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [Marti](/forum/user/2853-marti "View Marti's Profile")

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

- **[Marti](/forum/user/2853-marti "View Marti's Profile")**
- [![Marti's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2853.png)](/forum/user/2853-marti "View Marti's Profile") Topic Author
- [ Offline](/forum/user/2853-marti)

Less More

- Posts: 111
- Thank you received: 19
-

4 years 6 months ago -  4 years 6 months ago [\#340680](#340680) by [Marti](/forum/user/2853-marti "View Marti's Profile")  Replied by *[Marti](/forum/user/2853-marti "View Marti's Profile")* on topic *[Frontend - Vendor list field in the wrong order](/forum/23-market-how-to/904214-frontend-vendor-list-field-in-the-wrong-order#340680 "-- url of the page with the problem -- :   sofleurs.fr  -- HikaShop version -- : 4.5.0 -- HikaMarket version -- : 4.0.0 -- Joomla version -- : 3.10.8 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Firefox and Chrome last version  Hello, I have created a &quot;select&#95;vendor&quot; field that is displayed at checkout. The problem is that when I select the drop down list view, the sellers are displayed in the order of their registration and I need them to be displayed in alphanumeric/alphabetical order. If I select the Namebox view, the order is correct but only some of the sellers are displayed. If I select the Popup view, the whole site is displayed in the popup with a message that the seller has expired and there is no list of vendors... How can I change the display to a drop-down list with alphanumeric/alphabetical order? Thanks for your help")*

Hello Jerome,
Thanks for the answer, it works fine.

Last edit: 4 years 6 months ago by [Marti](/forum/user/2853-marti "View Marti's Profile").

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vOTA0MjE0LWZyb250ZW5kLXZlbmRvci1saXN0LWZpZWxkLWluLXRoZS13cm9uZy1vcmRlcj90bXBsPW1hcmtkb3du) 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.080 seconds

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

[](#top)
