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

#   Two different product listing menus

##

- **[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 9 months ago -  10 years 9 months ago [\#230115](#230115) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  *[Two different product listing menus](/forum/23-market-how-to/882331-two-different-product-listing-menus#230115 "-- HikaShop version -- : 2.6.1 -- HikaMarket version -- : 1.6.7 -- Joomla version -- : 3.4.8  I need two Product List Menus, one that Shows all products from root and another one that only shows a certain category products and its subelements if selected.  But when I edit a Menu that has assigned the Vendor Product Listing as Menu Item Type I have a second tab named HikaMarket Options, inside this tab there is a link to Hikamarket Options...  But when clicking is bringing me nowhere. Is this right? Maybe an outdated method?  This is the link associated  http://mydomain.com/administrator/index.php?option=com&#95;hikamarket&amp;ctrl=menus&amp;fromjoomla=1&amp;task=edit&amp;cid&#91;&#93;=511")* was created by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")*

-- HikaShop version -- : 2.6.1
-- HikaMarket version -- : 1.6.7
-- Joomla version -- : 3.4.8

I need two Product List Menus, one that Shows all products from root and another one that only shows a certain category products and its subelements if selected.

But when I edit a Menu that has assigned the Vendor Product Listing as Menu Item Type I have a second tab named HikaMarket Options, inside this tab there is a link to Hikamarket Options...

But when clicking is bringing me nowhere. Is this right? Maybe an outdated method?

[ ![Captura&#95;de&#95;pantalla&#95;2016-02-15&#95;a&#95;les&#95;22&#95;34&#95;11.png](/forum/attachment/29544) ](/forum/attachment/29544 "...s&#95;22&#95;34&#95;11.png")

This is the link associated

http://*mydomain.com*/administrator/index.php?option=com_hikamarket&amp;ctrl=menus&amp;fromjoomla=1&amp;task=edit&amp;cid[]=511

- [ ![Captura&#95;de&#95;pantalla&#95;2016-02-15&#95;a&#95;les&#95;22&#95;34&#95;11.png](/forum/attachment/29544) ](/forum/attachment/29544 "...s&#95;22&#95;34&#95;11.png") [ ](/forum/attachment/29544?download=1 "...s&#95;22&#95;34&#95;11.png")

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODgyMzMxLXR3by1kaWZmZXJlbnQtcHJvZHVjdC1saXN0aW5nLW1lbnVzP3RtcGw9bWFya2Rvd24=) 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 9 months ago [\#230118](#230118) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Two different product listing menus](/forum/23-market-how-to/882331-two-different-product-listing-menus#230118 "-- HikaShop version -- : 2.6.1 -- HikaMarket version -- : 1.6.7 -- Joomla version -- : 3.4.8  I need two Product List Menus, one that Shows all products from root and another one that only shows a certain category products and its subelements if selected.  But when I edit a Menu that has assigned the Vendor Product Listing as Menu Item Type I have a second tab named HikaMarket Options, inside this tab there is a link to Hikamarket Options...  But when clicking is bringing me nowhere. Is this right? Maybe an outdated method?  This is the link associated  http://mydomain.com/administrator/index.php?option=com&#95;hikamarket&amp;ctrl=menus&amp;fromjoomla=1&amp;task=edit&amp;cid&#91;&#93;=511")*

Hi,

It is "right" yes.
But I will remove that tab (and link) in the next release.
There is currently no option for the "vendor product listing" ; it is just pointing to the "product listing" for vendors and there is no options for that menu.
Currently, only the "vendor listing" menus have settings.

Regards,

---

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

The following user(s) said Thank You: [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")

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

- **[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 9 months ago [\#230125](#230125) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Two different product listing menus](/forum/23-market-how-to/882331-two-different-product-listing-menus#230125 "-- HikaShop version -- : 2.6.1 -- HikaMarket version -- : 1.6.7 -- Joomla version -- : 3.4.8  I need two Product List Menus, one that Shows all products from root and another one that only shows a certain category products and its subelements if selected.  But when I edit a Menu that has assigned the Vendor Product Listing as Menu Item Type I have a second tab named HikaMarket Options, inside this tab there is a link to Hikamarket Options...  But when clicking is bringing me nowhere. Is this right? Maybe an outdated method?  This is the link associated  http://mydomain.com/administrator/index.php?option=com&#95;hikamarket&amp;ctrl=menus&amp;fromjoomla=1&amp;task=edit&amp;cid&#91;&#93;=511")*

Thank you Jerome,

and could there be some trick like using ReReplacer to change something in the output HTML so I can force only the view of a certain category in the otree representation?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODgyMzMxLXR3by1kaWZmZXJlbnQtcHJvZHVjdC1saXN0aW5nLW1lbnVzP3RtcGw9bWFya2Rvd24=) 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 9 months ago [\#230151](#230151) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Two different product listing menus](/forum/23-market-how-to/882331-two-different-product-listing-menus#230151 "-- HikaShop version -- : 2.6.1 -- HikaMarket version -- : 1.6.7 -- Joomla version -- : 3.4.8  I need two Product List Menus, one that Shows all products from root and another one that only shows a certain category products and its subelements if selected.  But when I edit a Menu that has assigned the Vendor Product Listing as Menu Item Type I have a second tab named HikaMarket Options, inside this tab there is a link to Hikamarket Options...  But when clicking is bringing me nowhere. Is this right? Maybe an outdated method?  This is the link associated  http://mydomain.com/administrator/index.php?option=com&#95;hikamarket&amp;ctrl=menus&amp;fromjoomla=1&amp;task=edit&amp;cid&#91;&#93;=511")*

Hi,

I'm afraid I cannot.
The tree is generated dynamically using the oTree lib and the data provided by the view.
I don't see how you can perform replacements without breaking the JSON...
No ; you'll need to perform a view override if you want to do something like that..

Regards,

---

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

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

- **[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 9 months ago [\#230191](#230191) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Two different product listing menus](/forum/23-market-how-to/882331-two-different-product-listing-menus#230191 "-- HikaShop version -- : 2.6.1 -- HikaMarket version -- : 1.6.7 -- Joomla version -- : 3.4.8  I need two Product List Menus, one that Shows all products from root and another one that only shows a certain category products and its subelements if selected.  But when I edit a Menu that has assigned the Vendor Product Listing as Menu Item Type I have a second tab named HikaMarket Options, inside this tab there is a link to Hikamarket Options...  But when clicking is bringing me nowhere. Is this right? Maybe an outdated method?  This is the link associated  http://mydomain.com/administrator/index.php?option=com&#95;hikamarket&amp;ctrl=menus&amp;fromjoomla=1&amp;task=edit&amp;cid&#91;&#93;=511")*

So you mean like by creating an override of the listing.php I could change the way Otree.js is invoked and force only a certain category to be shown?

if so, could you suggest the code that should be tweaked?

thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODgyMzMxLXR3by1kaWZmZXJlbnQtcHJvZHVjdC1saXN0aW5nLW1lbnVzP3RtcGw9bWFya2Rvd24=) 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 9 months ago [\#230193](#230193) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Two different product listing menus](/forum/23-market-how-to/882331-two-different-product-listing-menus#230193 "-- HikaShop version -- : 2.6.1 -- HikaMarket version -- : 1.6.7 -- Joomla version -- : 3.4.8  I need two Product List Menus, one that Shows all products from root and another one that only shows a certain category products and its subelements if selected.  But when I edit a Menu that has assigned the Vendor Product Listing as Menu Item Type I have a second tab named HikaMarket Options, inside this tab there is a link to Hikamarket Options...  But when clicking is bringing me nowhere. Is this right? Maybe an outdated method?  This is the link associated  http://mydomain.com/administrator/index.php?option=com&#95;hikamarket&amp;ctrl=menus&amp;fromjoomla=1&amp;task=edit&amp;cid&#91;&#93;=511")*

Hi,

In the view "productmarket &#124; listing", you can find the code Code:

&lt;?php echo $this-&gt;shopCategoryType-&gt;displayTree('hikam_categories', $this-&gt;rootCategory, null, true, true); ?&gt;

Thanks to that, the view is displaying the category tree and use the "rootCategory" has the root category.
You can use another value for the rootCategory if you want.

Regards,

---

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

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

- **[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
-
-

9 years 11 months ago [\#256512](#256512) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Two different product listing menus](/forum/23-market-how-to/882331-two-different-product-listing-menus#256512 "-- HikaShop version -- : 2.6.1 -- HikaMarket version -- : 1.6.7 -- Joomla version -- : 3.4.8  I need two Product List Menus, one that Shows all products from root and another one that only shows a certain category products and its subelements if selected.  But when I edit a Menu that has assigned the Vendor Product Listing as Menu Item Type I have a second tab named HikaMarket Options, inside this tab there is a link to Hikamarket Options...  But when clicking is bringing me nowhere. Is this right? Maybe an outdated method?  This is the link associated  http://mydomain.com/administrator/index.php?option=com&#95;hikamarket&amp;ctrl=menus&amp;fromjoomla=1&amp;task=edit&amp;cid&#91;&#93;=511")*

I want to add some modification to this OTree functionality.

With your advise I maanged to make OTree start showing form the category I like
Code:

&lt;?php echo $this-&gt;shopCategoryType-&gt;displayTree('hikam_categories', 2 , null, true, true); ?&gt;

in this case this is Product Category but not root nor vendor nor other categories that are of no interest to my frontend users.

Now I need to add a second category to that is in the same level as product category, I mean that is also a son of Root.

I would like to do something like this:
Code:

&lt;?php echo $this-&gt;shopCategoryType-&gt;displayTree('hikam_categories', array(2, 157) , null, true, true); ?&gt;

Of course this might look ridiculous, but I don't know where to start from...

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

9 years 11 months ago [\#256526](#256526) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Two different product listing menus](/forum/23-market-how-to/882331-two-different-product-listing-menus#256526 "-- HikaShop version -- : 2.6.1 -- HikaMarket version -- : 1.6.7 -- Joomla version -- : 3.4.8  I need two Product List Menus, one that Shows all products from root and another one that only shows a certain category products and its subelements if selected.  But when I edit a Menu that has assigned the Vendor Product Listing as Menu Item Type I have a second tab named HikaMarket Options, inside this tab there is a link to Hikamarket Options...  But when clicking is bringing me nowhere. Is this right? Maybe an outdated method?  This is the link associated  http://mydomain.com/administrator/index.php?option=com&#95;hikamarket&amp;ctrl=menus&amp;fromjoomla=1&amp;task=edit&amp;cid&#91;&#93;=511")*

Hi,

It could be an interesting addition in the HikaShop "category sub" Type.
But please note that this type is provided by HikaShop and not HikaMarket ; that's why the variable starts with "shop" in the HikaMarket view.

Regards,

---

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

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

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