Hi,
If the module would one of the ones in HikaShop, we have display options you can use in the module to do that.
But for another module, Joomla by itself doesn't allow you to restrict it based on something else than the menu item. And thus, since when you click on a category/product of a menu item you stay on the same menu item but display another page of that menu item, you can't do what you want.
There are solutions though:
- instead of using a menu item of the type HikaShop categories listing, you could use a menu item of the type "joomla article, for example, and then create a new instance of the HikaShop content module in the Joomla modules manager configured to display the categories of the shop on that menu item. Then, in the "menu" setting of the "HikaShop options" tab of your module, you can select the target menu item which will display the products / sub categories when you click on a category displayed by the module. That way, if you assign module to the home page menu item, it won't be displayed when you click on a link of the module.
- You could create a HikaShop categories listing menu item for each category displayed on your home page with the corresponding category selected in the "main category" setting of the menu item, and the menu item's parent being the home page menu item.
That way, the system would automatically switch to the sub menu item when generating the link of a category of the home page menu item and the menu assignment of your module would work like you want.
- You could use Advanced Modules Manager Pro. It has display options similar to what we've done in our module, but it works for any module.