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

#   Choosing vendor users

##

- **[twscott](/forum/user/43011-twscott "View twscott's Profile")**
- [![twscott's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/43011-twscott "View twscott's Profile") Topic Author
- [ Offline](/forum/user/43011-twscott)

Less More

- Posts: 252
- Thank you received: 1
-
-
-
-

10 years 3 weeks ago [\#253691](#253691) by [twscott](/forum/user/43011-twscott "View twscott's Profile")  *[Choosing vendor users](/forum/19-hikamarket/887171-choosing-vendor-users#253691 "-- HikaShop version -- : 2.6.4 -- HikaMarket version -- : 1.7.2 -- Joomla version -- : 3.6 -- PHP version -- : 5.5.12  Hi, When I choose administrator or users for a vendor, I found the bigger ID users just don't shows in the drop down list, so I can not choose the right person for it. Can I set only user in vendor usergroup shows in the list ?  Thanks")* was created by *[twscott](/forum/user/43011-twscott "View twscott's Profile")*

-- HikaShop version -- : 2.6.4
-- HikaMarket version -- : 1.7.2
-- Joomla version -- : 3.6
-- PHP version -- : 5.5.12

Hi,
When I choose administrator or users for a vendor, I found the bigger ID users just don't shows in the drop down list, so I can not choose the right person for it. Can I set only user in vendor usergroup shows in the list ?

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg3MTcxLWNob29zaW5nLXZlbmRvci11c2Vycz90bXBsPW1hcmtkb3du) 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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 3 weeks ago [\#253699](#253699) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Choosing vendor users](/forum/19-hikamarket/887171-choosing-vendor-users#253699 "-- HikaShop version -- : 2.6.4 -- HikaMarket version -- : 1.7.2 -- Joomla version -- : 3.6 -- PHP version -- : 5.5.12  Hi, When I choose administrator or users for a vendor, I found the bigger ID users just don't shows in the drop down list, so I can not choose the right person for it. Can I set only user in vendor usergroup shows in the list ?  Thanks")*

Hi,

The user selection is using the "namebox" system.
That system allow to perform search (on various fields, like "username" or "email") and it also have a dynamic loading (where you are at the bottom of the list, the rest is retrieved using an ajax call).

In the backend view "vendormarket / form" you will find the code which use the namebox type to display the selection of a user.
It is possible to add options in order to change some elements (like the sort) but there is no group filter available for the moment.
To implement new options it requires to modify the HikaMarket user class (which is core file).
Displaying only the users in a specific group is possible, it needs to add a filter in the function "getNameboxData". Code:

$sqlJoins = array(); $sqlFilters = array('juser.block = 0'); if(!empty($options['filters'])) { foreach($options['filters'] as $filter) { } }

With the variable sqlJoins you can add tables in the SQL query (to include the joomla user groups) and with the variable sqlFilters you can add the filter to only get the user in one specific group.

Regards,

---

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

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

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

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