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

#   Remove main vendor form vendor dropdown field

##

- **[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")**
- [![pepecortez's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31475-pepecortez "View pepecortez's Profile") Topic Author
- [ Offline](/forum/user/31475-pepecortez)

Less More

- Posts: 171
- Thank you received: 9
-
-

12 years 7 months ago [\#149807](#149807) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  *[Remove main vendor form vendor dropdown field](/forum/19-hikamarket/866956-remove-main-vendor-form-vendor-dropdown-field#149807 "Hi!  It's fine that the &quot;main&quot; vendor can see all the orders in frontend. But what if I don't want to show main vendor as an option when making the order. How can I remove that option from the &quot;vendor choose dropdown custom field&quot;?  Thanks again, PePe")* was created by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")*

Hi!

It's fine that the "main" vendor can see all the orders in frontend. But what if I don't want to show main vendor as an option when making the order. How can I remove that option from the "vendor choose dropdown custom field"?

Thanks again,
PePe

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

12 years 7 months ago [\#149841](#149841) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Remove main vendor form vendor dropdown field](/forum/19-hikamarket/866956-remove-main-vendor-form-vendor-dropdown-field#149841 "Hi!  It's fine that the &quot;main&quot; vendor can see all the orders in frontend. But what if I don't want to show main vendor as an option when making the order. How can I remove that option from the &quot;vendor choose dropdown custom field&quot;?  Thanks again, PePe")*

Hi,

It requires some modification in the core of HikaMarket.
I am investigating in order to improve the vendor selector and let him have some "filters".
But because this feature as to be compatible with both modes (dropdown and popup), the development is a little bit more complicated.

Regards,

---

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

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

- **[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")**
- [![pepecortez's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31475-pepecortez "View pepecortez's Profile") Topic Author
- [ Offline](/forum/user/31475-pepecortez)

Less More

- Posts: 171
- Thank you received: 9
-
-

12 years 7 months ago [\#149873](#149873) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  Replied by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")* on topic *[Remove main vendor form vendor dropdown field](/forum/19-hikamarket/866956-remove-main-vendor-form-vendor-dropdown-field#149873 "Hi!  It's fine that the &quot;main&quot; vendor can see all the orders in frontend. But what if I don't want to show main vendor as an option when making the order. How can I remove that option from the &quot;vendor choose dropdown custom field&quot;?  Thanks again, PePe")*

> Jerome wrote: Hi,
>
> It requires some modification in the core of HikaMarket.
> I am investigating in order to improve the vendor selector and let him have some "filters".
> But because this feature as to be compatible with both modes (dropdown and popup), the development is a little bit more complicated.
>
> Regards,

Thanks Jerome.
We gonne use dropdown version, temporary try to solve it with CSS display:none; .

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

12 years 7 months ago [\#149878](#149878) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Remove main vendor form vendor dropdown field](/forum/19-hikamarket/866956-remove-main-vendor-form-vendor-dropdown-field#149878 "Hi!  It's fine that the &quot;main&quot; vendor can see all the orders in frontend. But what if I don't want to show main vendor as an option when making the order. How can I remove that option from the &quot;vendor choose dropdown custom field&quot;?  Thanks again, PePe")*

Hi,

Temporally, you can put a little modification in order to change the way that the dropdown works.
You can edit the file "administrator/components/com_hikamarket/types/vendor_selection.php" and replace Code:

public function displayDropdown($map, $value, $delete = false, $options = '', $id = '') { $vendorClass = hikamarket::get('class.vendor'); $vendors = $vendorClass-&gt;getList(); return JHTML::_('select.genericlist', $vendors, $map, $options, 'value', 'text', $value, $id); }

By Code:

public function displayDropdown($map, $value, $delete = false, $options = '', $id = '') { $vendorClass = hikamarket::get('class.vendor'); $vendors = $vendorClass-&gt;getList(); $app = JFactory::getApplication(); if(!$app-&gt;isAdmin()) unset($vendors[0]); return JHTML::_('select.genericlist', $vendors, $map, $options, 'value', 'text', $value, $id); }

It will help you to wait until the implementation of the feature.

Regards,

---

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

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

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

- **[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")**
- [![pepecortez's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31475-pepecortez "View pepecortez's Profile") Topic Author
- [ Offline](/forum/user/31475-pepecortez)

Less More

- Posts: 171
- Thank you received: 9
-
-

12 years 7 months ago [\#149894](#149894) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  Replied by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")* on topic *[Remove main vendor form vendor dropdown field](/forum/19-hikamarket/866956-remove-main-vendor-form-vendor-dropdown-field#149894 "Hi!  It's fine that the &quot;main&quot; vendor can see all the orders in frontend. But what if I don't want to show main vendor as an option when making the order. How can I remove that option from the &quot;vendor choose dropdown custom field&quot;?  Thanks again, PePe")*

Thanks again, Jerome!

Tried it out, but main vendor still shown. As I understand the code, these lines check weather the vendor is an admin of the site.
You think more in my ideas, but this is also great for later. But for me, now I just need to not show that main vendor I can set up here:
/administrator/index.php?option=com_hikamarket&amp;ctrl=config#vendor

Your code could be also OK, but in that part of the admin backend, there's no way to add admin to vendor, and I think that's what your code is waiting for.

> Jerome wrote: Hi,
>
> Temporally, you can put a little modification in order to change the way that the dropdown works.
> You can edit the file "administrator/components/com\_hikamarket/types/vendor\_selection.php" and replace
>
> Code:
>
>  public function displayDropdown($map, $value, $delete = false, $options = '', $id = '') { $vendorClass = hikamarket::get('class.vendor'); $vendors = $vendorClass-&gt;getList(); return JHTML::_('select.genericlist', $vendors, $map, $options, 'value', 'text', $value, $id); }
>
>
>
> By Code:
>
>  public function displayDropdown($map, $value, $delete = false, $options = '', $id = '') { $vendorClass = hikamarket::get('class.vendor'); $vendors = $vendorClass-&gt;getList(); $app = JFactory::getApplication(); if(!$app-&gt;isAdmin()) unset($vendors[0]); return JHTML::_('select.genericlist', $vendors, $map, $options, 'value', 'text', $value, $id); }
>
>
>
> It will help you to wait until the implementation of the feature.
>
> Regards,

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

12 years 7 months ago [\#149900](#149900) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Remove main vendor form vendor dropdown field](/forum/19-hikamarket/866956-remove-main-vendor-form-vendor-dropdown-field#149900 "Hi!  It's fine that the &quot;main&quot; vendor can see all the orders in frontend. But what if I don't want to show main vendor as an option when making the order. How can I remove that option from the &quot;vendor choose dropdown custom field&quot;?  Thanks again, PePe")*

Hi,

The configuration of the main vendor is a part of HikaMarket that you can't disable like that.
This main vendor should not be removed, it is the base of the front-end editing feature for you.

So, I have difficulties to understand what you want to do.

Regards,

---

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

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

- **[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")**
- [![pepecortez's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31475-pepecortez "View pepecortez's Profile") Topic Author
- [ Offline](/forum/user/31475-pepecortez)

Less More

- Posts: 171
- Thank you received: 9
-
-

12 years 7 months ago [\#149940](#149940) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  Replied by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")* on topic *[Remove main vendor form vendor dropdown field](/forum/19-hikamarket/866956-remove-main-vendor-form-vendor-dropdown-field#149940 "Hi!  It's fine that the &quot;main&quot; vendor can see all the orders in frontend. But what if I don't want to show main vendor as an option when making the order. How can I remove that option from the &quot;vendor choose dropdown custom field&quot;?  Thanks again, PePe")*

Maybe I wasn't fully clear, so misunderstood.

On our site the main vendor should function just as an "administrator". Main vendor should see everything, do everything on frontend.
BUT! Users can make the orders directly just to the sub-vendors. So in checkout process, on the "Choose vendor" dropdown custom field, we wanna show all our sub-vendors, but do not the main vendor. In this way the main vendor can controll all the subvendors' orders, but the user can not make on order directly to the main vendor.

> Jerome wrote: Hi,
>
> The configuration of the main vendor is a part of HikaMarket that you can't disable like that.
> This main vendor should not be removed, it is the base of the front-end editing feature for you.
>
> So, I have difficulties to understand what you want to do.
>
> Regards,

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

12 years 7 months ago [\#149969](#149969) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Remove main vendor form vendor dropdown field](/forum/19-hikamarket/866956-remove-main-vendor-form-vendor-dropdown-field#149969 "Hi!  It's fine that the &quot;main&quot; vendor can see all the orders in frontend. But what if I don't want to show main vendor as an option when making the order. How can I remove that option from the &quot;vendor choose dropdown custom field&quot;?  Thanks again, PePe")*

Hi,

Ok so it is what I understood and the patch should do his job.
It remove the "main vendor" from the list of vendors when in the call is made from the fron-end.
So, the main vendor should not be displayed in the dropdown (in the front-end) anymore.

Regards,

---

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

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

- **[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")**
- [![pepecortez's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31475-pepecortez "View pepecortez's Profile") Topic Author
- [ Offline](/forum/user/31475-pepecortez)

Less More

- Posts: 171
- Thank you received: 9
-
-

12 years 7 months ago [\#149998](#149998) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  Replied by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")* on topic *[Remove main vendor form vendor dropdown field](/forum/19-hikamarket/866956-remove-main-vendor-form-vendor-dropdown-field#149998 "Hi!  It's fine that the &quot;main&quot; vendor can see all the orders in frontend. But what if I don't want to show main vendor as an option when making the order. How can I remove that option from the &quot;vendor choose dropdown custom field&quot;?  Thanks again, PePe")*

Modified that file, but main vendor remains there unfortunately.

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

12 years 7 months ago [\#150030](#150030) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Remove main vendor form vendor dropdown field](/forum/19-hikamarket/866956-remove-main-vendor-form-vendor-dropdown-field#150030 "Hi!  It's fine that the &quot;main&quot; vendor can see all the orders in frontend. But what if I don't want to show main vendor as an option when making the order. How can I remove that option from the &quot;vendor choose dropdown custom field&quot;?  Thanks again, PePe")*

Hi,

Right, my fault.
The code is Code:

$app = JFactory::getApplication(); if(!$app-&gt;isAdmin()) unset($vendors[1]);

The main vendor is "1", no "0"...

Regards,

---

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

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

- **[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")**
- [![pepecortez's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31475-pepecortez "View pepecortez's Profile") Topic Author
- [ Offline](/forum/user/31475-pepecortez)

Less More

- Posts: 171
- Thank you received: 9
-
-

12 years 7 months ago [\#150045](#150045) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  Replied by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")* on topic *[Remove main vendor form vendor dropdown field](/forum/19-hikamarket/866956-remove-main-vendor-form-vendor-dropdown-field#150045 "Hi!  It's fine that the &quot;main&quot; vendor can see all the orders in frontend. But what if I don't want to show main vendor as an option when making the order. How can I remove that option from the &quot;vendor choose dropdown custom field&quot;?  Thanks again, PePe")*

Perfect. Thanks!

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

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

[](#top)
