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

#   Frontend Full Category Tree as Backend

##

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

Less More

- Posts: 20
- Thank you received: 0
-
-

14 years 5 months ago [\#49589](#49589) by [sharq](/forum/user/6679-sharq "View sharq's Profile")  *[Frontend Full Category Tree as Backend](/forum/2-general-talk-about-hikashop/49589-frontend-full-category-tree-as-backend#49589 "I found a topic, where you write there is'nt possible to show a full category tree. Just until the 2nd level deep. I dont understand fully why? On the backend I see a nice category tree. It would be...")* was created by *[sharq](/forum/user/6679-sharq "View sharq's Profile")*

I found a topic, where you write there is'nt possible to show a full category tree. Just until the 2nd level deep. I dont understand fully why? On the backend I see a nice category tree. It would be great if I can that use on the frontend. Is there any way to do that??

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ5NTg5LWZyb250ZW5kLWZ1bGwtY2F0ZWdvcnktdHJlZS1hcy1iYWNrZW5kP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

14 years 5 months ago [\#49617](#49617) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Frontend Full Category Tree as Backend](/forum/2-general-talk-about-hikashop/49589-frontend-full-category-tree-as-backend#49617 "I found a topic, where you write there is'nt possible to show a full category tree. Just until the 2nd level deep. I dont understand fully why? On the backend I see a nice category tree. It would be...")*

The reason is simple. The front end module wasn't build to handle that.
It would be great yes. But as you know Rome wasn't built in one day. We have feature requests everyday. That one isn't easy to add and isn't asked much. So it's still waiting for the future.

You can do it by create one menu per category and using one of the multi levels joomla menu module available on the JED

OR by using that integration which handles HikaShop categories with any number of levels:
[ www.joomlack.fr/en/Joomla-extensions/Men...ximenu-hikashop.html](http://www.joomlack.fr/en/Joomla-extensions/Menu/patch-maximenu-hikashop.html)

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

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

Less More

- Posts: 20
- Thank you received: 0
-
-

14 years 5 months ago -  14 years 5 months ago [\#49688](#49688) by [sharq](/forum/user/6679-sharq "View sharq's Profile")  Replied by *[sharq](/forum/user/6679-sharq "View sharq's Profile")* on topic *[Re: Frontend Full Category Tree as Backend](/forum/2-general-talk-about-hikashop/49589-frontend-full-category-tree-as-backend#49688 "I found a topic, where you write there is'nt possible to show a full category tree. Just until the 2nd level deep. I dont understand fully why? On the backend I see a nice category tree. It would be...")*

> nicolas wrote: But as you know Rome wasn't built in one day.

It looks like, I bulilt a small part of Rome in one day. ![:)](/media/kunena/emoticons/3.png ":)") I dont know the system, I just simple puchased it, and made it alone under 1 day?? ![:)](/media/kunena/emoticons/3.png ":)") Funny.
I just thought it's can't bee a big job, and Its true! Not big deal.. ![:)](/media/kunena/emoticons/3.png ":)") So when I made it under one day. I think, (if you are a talented team), maybe 1-2 hour. ![:)](/media/kunena/emoticons/3.png ":)")

> nicolas wrote: The reason is simple. The front end module wasn't build to handle that.

No. The answer what is simple ![:)](/media/kunena/emoticons/3.png ":)") That module is perfect to the frontend too, because that just a simple dTree ![:)](/media/kunena/emoticons/3.png ":)")

> nicolas wrote: You can do it by create one menu per category

It's a nightmare if i have lot of category, and that changeing every week or month. ![:)](/media/kunena/emoticons/3.png ":)")

For other users, who found this post, and wanted to do more level deep then 2:
1, Copy: administrator/components/com_hikashop/views/explorer TO: components/com_hikashop/views/explorer
2, Copy paste and rename mod_hikashop_currency module to the same dir as mod_hikatree (change xml datas for install it later trough joomla admin)
3, Empty mod_hikatree/tmpl/default.php
4, In mod_hikatree/mod_hikatree.php keep the JEXEC, and include helper parts, clean the others and paste this:
Code:

require JModuleHelper::getLayoutPath('mod_hikatree', $params-&gt;get('layout', 'default')); $html = trim(hikashop_setExplorer('view',2,false,'product')); if(!empty($html)){ echo ' &lt;div class="hikashop_tree_module"&gt; '.$html.' &lt;/div&gt; '; }

5, In components/com_hikashop/views/explorer/view.html.php
5.1 Change line 39

From Code:

$where = ' WHERE a.category_type IN ('.$database-&gt;Quote($type).',\'root\')';

To Code:

$where = ' WHERE a.category_type IN ('.$database-&gt;Quote($type).',\'\')';

5.2, If you want to sincronize tree after you clicked one category, add this to line 67
Code:

$d = explode("-",basename($_SERVER['REQUEST_URI'])); $defaultId = abs($d[0]);

6, Joomla admin -&gt; extension manager -&gt; manage -&gt; discover -&gt; click discover -&gt; install
7, in module manager create new module -&gt; Hikashop Tree -&gt; set a position, save, and you are finish ![:)](/media/kunena/emoticons/3.png ":)")

Thanks the help? ![:D](/media/kunena/emoticons/1.png ":D") ^o) ![B)](/media/kunena/emoticons/9.png "B)")

*I uploaded my finished version too. Please, if you like my job, invite me for a coffee: paypal : sharqgm (@) gmail (dot) com DL link: [ ](http://sharq.hu/hikatree.zip)[ sharq.hu/hikatree.zip](http://sharq.hu/hikatree.zip)*

Last edit: 14 years 5 months ago by [sharq](/forum/user/6679-sharq "View sharq's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ5NTg5LWZyb250ZW5kLWZ1bGwtY2F0ZWdvcnktdHJlZS1hcy1iYWNrZW5kP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

14 years 5 months ago [\#49791](#49791) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Frontend Full Category Tree as Backend](/forum/2-general-talk-about-hikashop/49589-frontend-full-category-tree-as-backend#49791 "I found a topic, where you write there is'nt possible to show a full category tree. Just until the 2nd level deep. I dont understand fully why? On the backend I see a nice category tree. It would be...")*

It's not what I had in mind. I was thinking of integrating the dTree directly in the HikaShop content module so that you can really configure it the way you want. That's what doesn't take 1-2 hours.
As you say, including the dTree view in a module isn't complex if you're a developer but remember that most of our users aren't. That's why I didn't want to explain all that.

Thanks for sharing the module! I'm sure that some other users of HikaShop will be happy to use it.

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

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

[](#top)
