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

#   Custom fields for brands; Joomla User integration

##

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

Less More

- Posts: 28
- Thank you received: 0
-
-

7 years 9 months ago [\#303054](#303054) by [Cedwyn](/forum/user/31495-cedwyn "View Cedwyn's Profile")  *[Custom fields for brands; Joomla User integration](/forum/26-product-category-display/896754-custom-fields-for-brands-joomla-user-integration#303054 "-- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.9.2 -- PHP version -- : latest  Hello,  Two questions: 1) Is it possible or will it be possible in the future to have custom fields for brands like we have for products? 2) Is there a way to integrate joomla users into product creation, like a custom field with a dropdown that accesses joomla's user database?  Thanks!")* was created by *[Cedwyn](/forum/user/31495-cedwyn "View Cedwyn's Profile")*

-- HikaShop version -- : 4.0.0
-- Joomla version -- : 3.9.2
-- PHP version -- : latest

Hello,

Two questions:
1) Is it possible or will it be possible in the future to have custom fields for brands like we have for products?
2) Is there a way to integrate joomla users into product creation, like a custom field with a dropdown that accesses joomla's user database?

Thanks!

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

7 years 9 months ago [\#303063](#303063) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom fields for brands; Joomla User integration](/forum/26-product-category-display/896754-custom-fields-for-brands-joomla-user-integration#303063 "-- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.9.2 -- PHP version -- : latest  Hello,  Two questions: 1) Is it possible or will it be possible in the future to have custom fields for brands like we have for products? 2) Is there a way to integrate joomla users into product creation, like a custom field with a dropdown that accesses joomla's user database?  Thanks!")*

Hello,

1 - Brands is using the category system, so does the custom field for categories.
2 - I'm sorry but I don't understand what you're talking about. Please clarify.

Regards,

---

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

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

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

Less More

- Posts: 28
- Thank you received: 0
-
-

7 years 9 months ago [\#303079](#303079) by [Cedwyn](/forum/user/31495-cedwyn "View Cedwyn's Profile")  Replied by *[Cedwyn](/forum/user/31495-cedwyn "View Cedwyn's Profile")* on topic *[Custom fields for brands; Joomla User integration](/forum/26-product-category-display/896754-custom-fields-for-brands-joomla-user-integration#303079 "-- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.9.2 -- PHP version -- : latest  Hello,  Two questions: 1) Is it possible or will it be possible in the future to have custom fields for brands like we have for products? 2) Is there a way to integrate joomla users into product creation, like a custom field with a dropdown that accesses joomla's user database?  Thanks!")*

Hello Jerome,

Thanks for the quick reply.

Re: #2:

I have a website using hikashop (business edition) for event registration. Most of the event details are custom fields and this works well, however there is a bit of a dilemma for the event teachers. The teachers are currently setup as joomla users with a 3rd party plugin that adds some extra fields to users (bio, photo, custom fields, etc). I would like to continue using joomla users for displaying teachers, so in the backend, I wish to allow event creators to use a dropdown to select the event teachers, which is populated from joomla users.

ie. Custom field "teacher" that has a multiple select dropdown. That dropdown has 1 default value ("no teacher"). When a product is being created in the backend, I wish to access joomla users, select all the teacher users and populate the dropdown custom field with their names.

I looked in the hikashop code for products form to see how you add custom fields to the product new/edit display. I could add code here to check for the custom field "teacher" and populate it with joomla users, but I was wondering if there is a better way to do this?

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86575
- Thank you received: 14318
-
-

7 years 9 months ago [\#303100](#303100) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom fields for brands; Joomla User integration](/forum/26-product-category-display/896754-custom-fields-for-brands-joomla-user-integration#303100 "-- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.9.2 -- PHP version -- : latest  Hello,  Two questions: 1) Is it possible or will it be possible in the future to have custom fields for brands like we have for products? 2) Is there a way to integrate joomla users into product creation, like a custom field with a dropdown that accesses joomla's user database?  Thanks!")*

Hi,

The best is to create your own type of custom field using the cusotm field API in a plugin of the group "hikashop":
[ www.hikashop.com/support/documentation/6...entation.html#fields](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#fields)
In your custom field code, you could extend from the single dropdown custom field type class and load dynamically the values from the database in the display function before calling the parent function.
That a lot easier and cleaner I think.
If you need an example of how to create a new custom field type, you can look at the plugins/hikashop/datepickerfield/ files. This plugin adds the "advanced date picker" type to the custom field system.

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

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

Less More

- Posts: 28
- Thank you received: 0
-
-

7 years 9 months ago [\#303498](#303498) by [Cedwyn](/forum/user/31495-cedwyn "View Cedwyn's Profile")  Replied by *[Cedwyn](/forum/user/31495-cedwyn "View Cedwyn's Profile")* on topic *[Custom fields for brands; Joomla User integration](/forum/26-product-category-display/896754-custom-fields-for-brands-joomla-user-integration#303498 "-- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.9.2 -- PHP version -- : latest  Hello,  Two questions: 1) Is it possible or will it be possible in the future to have custom fields for brands like we have for products? 2) Is there a way to integrate joomla users into product creation, like a custom field with a dropdown that accesses joomla's user database?  Thanks!")*

That's a great idea, thanks!

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

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.054 seconds

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