Skip to main content

Frontend - Vendor list field in the wrong order

More
4 years 6 months ago #340640 by Marti
-- 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

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

More
4 years 6 months ago #340674 by Jerome
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 & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: Marti

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

More
4 years 6 months ago - 4 years 6 months ago #340680 by Marti
Hello Jerome,
Thanks for the answer, it works fine.
Last edit: 4 years 6 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.111 seconds
Powered by Kunena Forum