- Posts: 377
- Thank you received: 7
Hide products under category
I am not sure how i have managed it, i want to display just categories on this page
www.warestreetmarket.com/newsite/Browse-By/category.html
I thought i knew how to do it, maybe i have been looking at hikashop for too long, i cannot see how to hide the products at the bottom of the page on that menu, i have the 'Associated products listing for category listing menu 919' set to unpublished, but it still shows....
Of course i want to display the products when i then click into the category.
Thanks
Please Log in or Create an account to join the conversation.
You do not have to unpublish the module, you have to remove the association in your HikaShop content menu configuration.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
www.warestreetmarket.com/newsite/Browse-By/category.html
Kind regards
Please Log in or Create an account to join the conversation.
Because from all I can see, that's why you see it there.
Note however that removing the products listing module there is probably not what you want to do... Because otherwise, when you click on a category, you won't see any product. What you probably want to do instead is to keep that module there and instead change the "sub elements filter" option of the module so that it displays only the products which are directly linked to the current category.
Please Log in or Create an account to join the conversation.
Thanks
Please Log in or Create an account to join the conversation.
Yes.
Changing the vendor root category to the "product category" will forbidden the selection of the main top level category.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
www.warestreetmarket.com/newsite/menu-fo...isting/category.html
Or is this the module set to show below product pages? I dont think anything should be showing there because i dont have any products in that category and have set the filter to only display direct sub elements. I have tried deleting and recreating the menu with the same effect coming back....
Thanks
Alex
Please Log in or Create an account to join the conversation.
If you are sure that there is no products in that main category and the filter is set on direct sub elements, so thanks to check the parameters of your module with the id "783".
See where it is called, if it's an associated module, check it's parameters too.
Please Log in or Create an account to join the conversation.
When i check for this module number 783 I can see the Associated products listing for category listing menu 1018 module. However i do not see an option to not display products? This module is not supposed to be associated with the menu item as i have removed it from the associated module for that menu item.
So i am not sure how to hide the products still on this first category page?
Thanks
Alex
Please Log in or Create an account to join the conversation.
In the options of this module, you can set the main category for the category option and set the filtering on direct sub elements.
That should not display products.
Thanks to the browser console we can see that it's this module which is displaying the products.
Another solution, could be to hide its content via css, but it's not the best method.
Please Log in or Create an account to join the conversation.
I cannot hide this module via css because i need it when i click into one of those categories to then display the products?
Thanks
Alex
Please Log in or Create an account to join the conversation.
Thanks to provide a backend access to your website. You can send it via pm, don't forget to give the url of this topic in the private message.
Please Log in or Create an account to join the conversation.
Kind regards
Please Log in or Create an account to join the conversation.
The problem come from "Advanced Module Manager", I tried to delete the module with the id 783 and associate another one (the 788) and same problem remains.
I think that there is a specific assignation to remove or something like that.
Please Log in or Create an account to join the conversation.
Thanks
Alex
Please Log in or Create an account to join the conversation.
Yes thanks to try with advanced module manager turned off.
Please Log in or Create an account to join the conversation.
I tried switching to the joomla core module manager, the module is also unpublished, I have also tried excluding that module from showing on that menu item, and it still shows? I am not sure how else to hide it on that page?
Thanks
Alex
Please Log in or Create an account to join the conversation.
Kind regards
Alex
Please Log in or Create an account to join the conversation.
<script type="text/javascript">
function showMyDiv() {
if (window.location.href == " www.warestreetmarket.com/newsite/menu-fo...isting/category.html ") {
document.getElementById("hikashop_submodules").style.display="none";
}
else {
document.getElementById("hikashop_submodules").style.display="relative";
}
}
</script>
</head>
<body onload = showMyDiv() >
However it doesn't seem to work.. do you have any ideas on how i can get this work as i really need to hide the products on this first category page.
Thanks
Alex
Please Log in or Create an account to join the conversation.
First add this to the bottom of the template php file...
<script>
if(location.href.match("category.html")){document.body.className+=" hide";}
</script>
switch 'category.html' for the url you are wanting to match
then add this to the css file:
body.hide .hikashop_products_listing {
display:none!important;
}
In this case i wanted to hide the .hikashop_products_listing module but only on the page category.html because of the problem with getting it to not display.
I hope this helps!
Please Log in or Create an account to join the conversation.