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

#   Store a category in a product custom field

##

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

10 years 10 months ago -  10 years 10 months ago [\#225419](#225419) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  *[Store a category in a product custom field](/forum/32-content-creation/881340-store-a-category-in-a-product-custom-field#225419 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.6  I need to create a custom field where categories would be stored the same way the core fields do for storing the categories of a product.  i mean that when my custom field gets focus in a form a category tree shows and I can choose at least one category. Those categories won't be used as to determine in which category the product is classified but for other purposes of my project.  Is there a simple way to do this, or not simple, but that you could guide me as what would be the right code to put in my customized data entry form ?  I may be wrong but I don't see the existence of such a type of field in the custom fields construction form.  Thank you.  UPDATE: Lets close this. Found the way.  Was not as hard as expected, we did simply by writing the right code in the form file.")* was created by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.6

I need to create a custom field where categories would be stored the same way the core fields do for storing the categories of a product.

i mean that when my custom field gets focus in a form a category tree shows and I can choose at least one category. Those categories won't be used as to determine in which category the product is classified but for other purposes of my project.

Is there a simple way to do this, or not simple, but that you could guide me as what would be the right code to put in my customized data entry form ?

I may be wrong but I don't see the existence of such a type of field in the custom fields construction form.

Thank you.

**UPDATE: Lets close this. Found the way.**

Was not as hard as expected, we did simply by writing the right code in the form file.

Last edit: 10 years 10 months ago by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile"). Reason: solved

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

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