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

#   Category view when the vendor add a product

##

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

Less More

- Posts: 31
- Thank you received: 3
-
-

4 years 5 months ago [\#342317](#342317) by [\_Pascal\_](/forum/user/55233-pascal "View &#95;Pascal&#95;'s Profile")  *[Category view when the vendor add a product](/forum/23-market-how-to/904542-category-view-when-the-vendor-add-a-product#342317 "Hi  Questions about the view when the vendor is adding a new product  a) Is it possible to redesign / overide category view in front for the vendor ?  b) I would like to limit the choice of the vendor to the final level of the category tree ? Is it possble by configuration ?  Regards")* was created by *[\_Pascal\_](/forum/user/55233-pascal "View &#95;Pascal&#95;'s Profile")*

Hi

Questions about the view when the vendor is adding a new product

a) Is it possible to redesign / overide category view in front for the vendor ?

b) I would like to limit the choice of the vendor to the final level of the category tree ?
Is it possble by configuration ?

Regards

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

4 years 5 months ago [\#342332](#342332) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Category view when the vendor add a product](/forum/23-market-how-to/904542-category-view-when-the-vendor-add-a-product#342332 "Hi  Questions about the view when the vendor is adding a new product  a) Is it possible to redesign / overide category view in front for the vendor ?  b) I would like to limit the choice of the vendor to the final level of the category tree ? Is it possble by configuration ?  Regards")*

Hello,

a - You can override and customize every HikaMarket views (and every HikaShop views).

b - HikaMarket have a hidden configuration setting "products_only_leaf_categories" which is specially made for that.
(Hidden settings need to be added directly in the configuration table in your database.)

Regards,

---

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

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

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

Less More

- Posts: 31
- Thank you received: 3
-
-

4 years 5 months ago [\#342348](#342348) by [\_Pascal\_](/forum/user/55233-pascal "View &#95;Pascal&#95;'s Profile")  Replied by *[\_Pascal\_](/forum/user/55233-pascal "View &#95;Pascal&#95;'s Profile")* on topic *[Category view when the vendor add a product](/forum/23-market-how-to/904542-category-view-when-the-vendor-add-a-product#342348 "Hi  Questions about the view when the vendor is adding a new product  a) Is it possible to redesign / overide category view in front for the vendor ?  b) I would like to limit the choice of the vendor to the final level of the category tree ? Is it possble by configuration ?  Regards")*

Thanks

I inserted the value in table as below
INSERT INTO &#96;xxx_hikamarket_config&#96; (&#96;config_namekey&#96;, &#96;config_value&#96;, &#96;config_default&#96;) VALUES
('products_only_leaf_categories', '1', '1');

But I can always choose any category (from the frontend screen) ...

Is that correct ?

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

4 years 5 months ago [\#342349](#342349) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Category view when the vendor add a product](/forum/23-market-how-to/904542-category-view-when-the-vendor-add-a-product#342349 "Hi  Questions about the view when the vendor is adding a new product  a) Is it possible to redesign / overide category view in front for the vendor ?  b) I would like to limit the choice of the vendor to the final level of the category tree ? Is it possble by configuration ?  Regards")*

Hello,

The feature do not change the behavior of the "namebox" system, the user can still select any category he wants.
But the option should perform a filtering and remove all new categories which are not leaf categories.

I checked the code and saw that there was a regression in recent release.
Please edit the file "administrator/components/com_hikamarket/classes/product.php" and replace the lines Code:

$keepCategories = array_intersect($categories, $oldCategories); $addedCategories = array_intersect($categories, $leafCategories);

By Code:

$keepCategories = array_intersect($product-&gt;categories, $oldCategories); $addedCategories = array_intersect($product-&gt;categories, $leafCategories);

It should restore the filtering while saving the product.

Regards,

---

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

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

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