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

#   Product category tree

##

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

Less More

- Posts: 377
- Thank you received: 7
-
-

10 years 6 months ago -  10 years 6 months ago [\#239826](#239826) by [Dibben](/forum/user/6788-dibben "View Dibben's Profile")  *[Product category tree](/forum/19-hikamarket/884453-product-category-tree#239826 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi,  I want to open the product category tree by default on front end. For this i have used the &quot;depth&quot; parameter and after using this i am not getting all the categories list. Also when i search and enter 3 or more alphabets than i am also not getting any categories in tree.  I have attached the image that will make you to understand my issue easily search1.png - tree is showing 4 categories when not using the depth parameter search2.png - tree showing only one parent category when used the depth parameter search3.png - when use 3 or more alphabets to search categories. No result showing search4.png - when use less than 3 alphabets to search categories. Showing the matched  Regards")* was created by *[Dibben](/forum/user/6788-dibben "View Dibben's Profile")*

-- HikaShop version -- : 2.6.3
-- HikaMarket version -- : 1.7.0
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.5

Hi,

I want to open the product category tree by default on front end. For this i have used the "depth" parameter and after using this i am not getting all the categories list.
Also when i search and enter 3 or more alphabets than i am also not getting any categories in tree.

I have attached the image that will make you to understand my issue easily
search1.png - tree is showing 4 categories when not using the depth parameter
search2.png - tree showing only one parent category when used the depth parameter
search3.png - when use 3 or more alphabets to search categories. No result showing
search4.png - when use less than 3 alphabets to search categories. Showing the matched

Regards

- [ ![search1.png](/forum/attachment/31353) ](/forum/attachment/31353 "search1.png") [ ](/forum/attachment/31353?download=1 "search1.png")
- [ ![search2.png](/forum/attachment/31354) ](/forum/attachment/31354 "search2.png") [ ](/forum/attachment/31354?download=1 "search2.png")
- [ ![search3.png](/forum/attachment/31355) ](/forum/attachment/31355 "search3.png") [ ](/forum/attachment/31355?download=1 "search3.png")
- [ ![search4.png](/forum/attachment/31356) ](/forum/attachment/31356 "search4.png") [ ](/forum/attachment/31356?download=1 "search4.png")

Last edit: 10 years 6 months ago by [Dibben](/forum/user/6788-dibben "View Dibben's Profile").

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

10 years 6 months ago [\#239830](#239830) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Product category tree](/forum/19-hikamarket/884453-product-category-tree#239830 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi,  I want to open the product category tree by default on front end. For this i have used the &quot;depth&quot; parameter and after using this i am not getting all the categories list. Also when i search and enter 3 or more alphabets than i am also not getting any categories in tree.  I have attached the image that will make you to understand my issue easily search1.png - tree is showing 4 categories when not using the depth parameter search2.png - tree showing only one parent category when used the depth parameter search3.png - when use 3 or more alphabets to search categories. No result showing search4.png - when use less than 3 alphabets to search categories. Showing the matched  Regards")*

Hi,

When the field have 3 or more characters, the search use made in ajax.
So you have an ajax call which is made and you should take a look at the call and his result.

Regards,

---

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

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

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

Less More

- Posts: 377
- Thank you received: 7
-
-

10 years 6 months ago -  10 years 6 months ago [\#239877](#239877) by [Dibben](/forum/user/6788-dibben "View Dibben's Profile")  Replied by *[Dibben](/forum/user/6788-dibben "View Dibben's Profile")* on topic *[Product category tree](/forum/19-hikamarket/884453-product-category-tree#239877 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi,  I want to open the product category tree by default on front end. For this i have used the &quot;depth&quot; parameter and after using this i am not getting all the categories list. Also when i search and enter 3 or more alphabets than i am also not getting any categories in tree.  I have attached the image that will make you to understand my issue easily search1.png - tree is showing 4 categories when not using the depth parameter search2.png - tree showing only one parent category when used the depth parameter search3.png - when use 3 or more alphabets to search categories. No result showing search4.png - when use less than 3 alphabets to search categories. Showing the matched  Regards")*

Hi,

Thanks for the reply. But you haven't respond to all of my queries.

Yes, i know it made ajax call if field has 3 or more. It returns the results if i commented the below code in components/com_hikamarket/controllers/category.php in getTree() method Code:

if(!hikamarket::isVendorCategory($category_id, null, true)) { echo '[]'; exit; }

But the response i am getting is showing only one category in results and the tree structure is also not proper.

Last edit: 10 years 6 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: [code] is nice

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

10 years 6 months ago [\#239910](#239910) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Product category tree](/forum/19-hikamarket/884453-product-category-tree#239910 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi,  I want to open the product category tree by default on front end. For this i have used the &quot;depth&quot; parameter and after using this i am not getting all the categories list. Also when i search and enter 3 or more alphabets than i am also not getting any categories in tree.  I have attached the image that will make you to understand my issue easily search1.png - tree is showing 4 categories when not using the depth parameter search2.png - tree showing only one parent category when used the depth parameter search3.png - when use 3 or more alphabets to search categories. No result showing search4.png - when use less than 3 alphabets to search categories. Showing the matched  Regards")*

Hi,

I can't reply to your question without having information which allow me to reproduce your issue.
Like : What are these categories ? What's your configuration ?
Without a global context and precise details, I won't be able to help you correctly.

Regards,

---

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

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

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

Less More

- Posts: 377
- Thank you received: 7
-
-

10 years 6 months ago [\#239996](#239996) by [Dibben](/forum/user/6788-dibben "View Dibben's Profile")  Replied by *[Dibben](/forum/user/6788-dibben "View Dibben's Profile")* on topic *[Product category tree](/forum/19-hikamarket/884453-product-category-tree#239996 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi,  I want to open the product category tree by default on front end. For this i have used the &quot;depth&quot; parameter and after using this i am not getting all the categories list. Also when i search and enter 3 or more alphabets than i am also not getting any categories in tree.  I have attached the image that will make you to understand my issue easily search1.png - tree is showing 4 categories when not using the depth parameter search2.png - tree showing only one parent category when used the depth parameter search3.png - when use 3 or more alphabets to search categories. No result showing search4.png - when use less than 3 alphabets to search categories. Showing the matched  Regards")*

Hi,

Categories are hikashop categories. Some of categories having depth upto 4 levels.
Category tree is like below
Product category
- Scotland
--
--
--
- England
--
--
--
- Wales
--
--
--
- Northern Ireland
--
--
--

Let me know what configuration you need?

Regards

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

10 years 6 months ago [\#240021](#240021) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Product category tree](/forum/19-hikamarket/884453-product-category-tree#240021 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hi,  I want to open the product category tree by default on front end. For this i have used the &quot;depth&quot; parameter and after using this i am not getting all the categories list. Also when i search and enter 3 or more alphabets than i am also not getting any categories in tree.  I have attached the image that will make you to understand my issue easily search1.png - tree is showing 4 categories when not using the depth parameter search2.png - tree showing only one parent category when used the depth parameter search3.png - when use 3 or more alphabets to search categories. No result showing search4.png - when use less than 3 alphabets to search categories. Showing the matched  Regards")*

Hi,

Please provide screenshots instead of text.
We still need details about your HikaMarket configuration and about your (real) category structure.
[ www.hikashop.com/support/documentation/1...nfig\_market\_category](http://www.hikashop.com/support/documentation/143-hikamarket-configuration.html#config_market_category)

Regards,

---

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

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

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