Hide products under category

  • Posts: 377
  • Thank you received: 7
11 years 4 months ago #148844

Hi,

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.

  • Posts: 26260
  • Thank you received: 4042
  • MODERATOR
11 years 4 months ago #148846

Hi,

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 377
  • Thank you received: 7
11 years 4 months ago #148985

Hmm, that is what i was thinking however i have done this (please see attached) yet the products are still showing.
www.warestreetmarket.com/newsite/Browse-By/category.html

Kind regards

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 84146
  • Thank you received: 13649
  • MODERATOR
11 years 4 months ago #148988

Are you sure that this screenshot comes from the options of the menu with the id 919 that we can see on the link that you gave ?
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.

The following user(s) said Thank You: Dibben

Please Log in or Create an account to join the conversation.

  • Posts: 377
  • Thank you received: 7
11 years 4 months ago #149065

What was also happening here is that the products were being added by vendor to the main top level product category so that's also why they were showing, what i need to do is prevent them from being allowed to select the top level category as a place to add their products. I can see access levels on the products categories in hikashop but i think this is front end access for viewing not access restriction for hikamarket vendors. Would i be right in thinking if i changes the parent category in the vendor config area for hikamarket from 'root' to 'product category' that this would apply this restriction?

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 26260
  • Thank you received: 4042
  • MODERATOR
11 years 4 months ago #149093

Hi,

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 377
  • Thank you received: 7
11 years 3 months ago #150486

I am still not sure this is working, I have products showing on the bottom of this?

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.

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #150544

Hi,

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.

  • Posts: 377
  • Thank you received: 7
11 years 3 months ago #151487

Hi Xavier,

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.

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #151534

Hi,

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.

  • Posts: 377
  • Thank you received: 7
11 years 3 months ago #151630

Yes 783 is definitely the one, i can adjust the number of products displayed etc and see the changes reflected. I have already set the display settings to direct sub elements only... which as you can see (attached) has no products in the root level of the main products category so shouldn't be displaying anything.

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

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #151694

Hi,

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.

  • Posts: 377
  • Thank you received: 7
11 years 3 months ago #151784

Thank you Xavier, I have sent you a P.M now.

Kind regards

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #151790

Hi,

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.

  • Posts: 377
  • Thank you received: 7
11 years 3 months ago #152078

But the module is not published so shouldn't be showing in advanced module manager? I might make a copy of the site and try turning off advanced module manager to see if this makes a difference.

Thanks

Alex

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #152081

The associated module are always unpublished.

Yes thanks to try with advanced module manager turned off.

Please Log in or Create an account to join the conversation.

  • Posts: 377
  • Thank you received: 7
11 years 3 months ago #152233

Hi Xavier,

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.

  • Posts: 377
  • Thank you received: 7
11 years 3 months ago #152391

I have also tried to update advanced module manager, publish the module and tell it not to show on that URL, not to show on that menu item, unpublished the module, it doesn't seem to make any difference hikashop seems to ignore any instruction not to display that module this definitely seems like a bug somewhere in hikashop as every other module follows instruction outside of hikashop?

Kind regards

Alex

Please Log in or Create an account to join the conversation.

  • Posts: 377
  • Thank you received: 7
11 years 3 months ago #152438

I tried this code in the template file to see if that would help:

<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.

  • Posts: 377
  • Thank you received: 7
11 years 3 months ago #152534

Ok so here is a work around if anyone else needs to do the same..

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.

Time to create page: 0.099 seconds
Powered by Kunena Forum