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

#   how to be dropdown field of product\_category

##

- **[\_blank](/forum/user/56277-blank "View &#95;blank's Profile")**
- [![&#95;blank's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56277-blank "View &#95;blank's Profile") Topic Author
- [ Offline](/forum/user/56277-blank)

Less More

- Posts: 4
- Thank you received: 0
-
-

8 years 7 months ago -  8 years 7 months ago [\#290448](#290448) by [\_blank](/forum/user/56277-blank "View &#95;blank's Profile")  *[how to be dropdown field of product\_category](/forum/23-market-how-to/894276-how-to-be-dropdown-field-of-product-category#290448 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 3.3.0 -- HikaMarket version -- : 1.7.1 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.0.0 -- Browser(s) name and version -- : chrome  I want to when i'm in add product , field of product&#95;category be dropdown ( like select and option) or be namebox single . what should i do?")* was created by *[\_blank](/forum/user/56277-blank "View &#95;blank's Profile")*

-- url of the page with the problem -- : localhost
-- HikaShop version -- : 3.3.0
-- HikaMarket version -- : 1.7.1
-- Joomla version -- : 3.8.5
-- PHP version -- : 7.0.0
-- Browser(s) name and version -- : chrome

I want to when i'm in add product , field of product_category be dropdown ( like select and option) or be namebox single . what should i do?

Last edit: 8 years 7 months ago by [\_blank](/forum/user/56277-blank "View &#95;blank's Profile").

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

8 years 7 months ago [\#290449](#290449) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[how to be dropdown field of product\_category](/forum/23-market-how-to/894276-how-to-be-dropdown-field-of-product-category#290449 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 3.3.0 -- HikaMarket version -- : 1.7.1 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.0.0 -- Browser(s) name and version -- : chrome  I want to when i'm in add product , field of product&#95;category be dropdown ( like select and option) or be namebox single . what should i do?")*

Hello,

Please see : [ www.hikashop.com/forum/20-market-feature...ot-in-dashboard.html](https://www.hikashop.com/forum/20-market-feature-requests/877099-change-display-of-category-root-in-dashboard.html)

As explained it requires a view override. You can modify the parameters of the namebox or you can replace the mentioned code by a customized dropdown. In such case you will have to respect the name of the input.

Regards,

---

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

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

- **[\_blank](/forum/user/56277-blank "View &#95;blank's Profile")**
- [![&#95;blank's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56277-blank "View &#95;blank's Profile") Topic Author
- [ Offline](/forum/user/56277-blank)

Less More

- Posts: 4
- Thank you received: 0
-
-

8 years 7 months ago -  8 years 7 months ago [\#290482](#290482) by [\_blank](/forum/user/56277-blank "View &#95;blank's Profile")  Replied by *[\_blank](/forum/user/56277-blank "View &#95;blank's Profile")* on topic *[how to be dropdown field of product\_category](/forum/23-market-how-to/894276-how-to-be-dropdown-field-of-product-category#290482 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 3.3.0 -- HikaMarket version -- : 1.7.1 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.0.0 -- Browser(s) name and version -- : chrome  I want to when i'm in add product , field of product&#95;category be dropdown ( like select and option) or be namebox single . what should i do?")*

tnx
i want vendor just select one category but i not found any answer in this topic ![:(](/media/kunena/emoticons/22.png ":(")
but i have this code in productmarket &gt; form: Code:

$categories = null; if(!empty($this-&gt;product-&gt;categories)) $categories = array_keys($this-&gt;product-&gt;categories); echo $this-&gt;nameboxType-&gt;display( 'data[product][categories]', $categories, hikamarketNameboxType::NAMEBOX_MULTIPLE, 'category', array( 'delete' =&gt; true, 'sort' =&gt; true, 'root' =&gt; $this-&gt;vendorCategories, 'default_text' =&gt; '&lt;em&gt;'.JText::_('HIKA_NONE').'&lt;/em&gt;', ) );

and worked . but when i changed this code: Code:

hikamarketNameboxType::NAMEBOX_MULTIPLE

to Code:

hikamarketNameboxType::NAMEBOX_SINGLE

when i save the form , All fields are saved except caegory of product not be save .
Where did i make a mistake?

Last edit: 8 years 7 months ago by [\_blank](/forum/user/56277-blank "View &#95;blank's Profile").

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

8 years 7 months ago [\#290483](#290483) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[how to be dropdown field of product\_category](/forum/23-market-how-to/894276-how-to-be-dropdown-field-of-product-category#290483 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 3.3.0 -- HikaMarket version -- : 1.7.1 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.0.0 -- Browser(s) name and version -- : chrome  I want to when i'm in add product , field of product&#95;category be dropdown ( like select and option) or be namebox single . what should i do?")*

Hello,

You can use " hikamarketNameboxType::NAMEBOX_SINGLE " but you'll also need to change the name to " data[product][categories][] " so you'll pass the same data to HikaMarket/HikaShop.

Regards,

---

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

The following user(s) said Thank You: [\_blank](/forum/user/56277-blank "View &#95;blank's Profile")

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

- **[\_blank](/forum/user/56277-blank "View &#95;blank's Profile")**
- [![&#95;blank's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56277-blank "View &#95;blank's Profile") Topic Author
- [ Offline](/forum/user/56277-blank)

Less More

- Posts: 4
- Thank you received: 0
-
-

8 years 7 months ago [\#290501](#290501) by [\_blank](/forum/user/56277-blank "View &#95;blank's Profile")  Replied by *[\_blank](/forum/user/56277-blank "View &#95;blank's Profile")* on topic *[how to be dropdown field of product\_category](/forum/23-market-how-to/894276-how-to-be-dropdown-field-of-product-category#290501 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 3.3.0 -- HikaMarket version -- : 1.7.1 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.0.0 -- Browser(s) name and version -- : chrome  I want to when i'm in add product , field of product&#95;category be dropdown ( like select and option) or be namebox single . what should i do?")*

very thanks . it's worked

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

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