Frontend - Vendor list field in the wrong order

  • Posts: 83
  • Thank you received: 15
  • Hikashop Business
2 years 8 months ago #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 "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

Attachments:

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

  • Posts: 26166
  • Thank you received: 4029
  • MODERATOR
2 years 8 months ago #340674

Hello,

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

protected function getVendorList($filters = array(), $sort = 'id') {
By
protected function getVendorList($filters = array(), $sort = 'name') {
And it will change the default sorting for the vendors.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: Marti

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

  • Posts: 83
  • Thank you received: 15
  • Hikashop Business
2 years 8 months ago #340680

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

Last edit: 2 years 8 months ago by Marti.
The following user(s) said Thank You: Jerome

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

Moderators: Obsidev
Time to create page: 0.078 seconds
Powered by Kunena Forum