Display category listing but no products module?

  • Posts: 182
  • Thank you received: 15
12 years 8 months ago #63106

I have been throught this before and I still haven't got to understand the logic behind how Hikashop works in this regard.

I have read the good informative thread started by "scottshort" RESOLVED:Understanding Associated Products Modules, www.hikashop.com/en/forum/4-how-to/54935...s-modules.html#55807

But I have problems to get where I want. Scott had a question about this but I didn't really saw a clear solution.

What I want is to show a few sub-categories in a Category as a DIV-layout.

If I create a menu item of type "Hikashop Categories Listing" and set it to DIV and do not create an "Associated Module" but Hikashop still creates an "Associated Module" and show up the products listing below the categories.

How do I solve this, I just want the three categories to show up and no products from those categories. To show the products the customer has to click on one of the categories to get there.

I saw a workaround suggestion to use a CSS {display:none;} and that sort of works in the first case but when clicking a category to show the products they are hidden in that page as well. So that is not really a good solution.

It must be very easy to have a setting in the category that let you select if you want products to show or not.


To get the look I want I have created articles where I have the links to each category menu item. It is a workaround that solves my problem but I don't like it. Again it must be better to have a setting that let you get this.


The frustrating thing about it is when I look at your demo site you have exactly the layout I want, but I don't understand how you got it. I want the look you have under "Category listing -> Display DIV /DIV"

Can you please explain how that was made, or do you have a tutorial on how that is done? I have apparently missed some basics on how this works and I am struggling on how to do it.

Your logic is not the same as mine :(


Thanks


Jan

Last edit: 12 years 8 months ago by jansuhr.

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

  • Posts: 182
  • Thank you received: 15
12 years 8 months ago #63124

I am now a happy man, I have finally found out why this is happening. I have been sleepless for a few days. :pinch:

I think that the problem originates from the VM-import.

I found that the products in a category were assigned to both the maincategory and the subcategory.

Like this:
webshop/maincategory
webshop/maincategory/subcategory

So by removing the first assignment I got it to work as I like it should be. And as the demosite :laugh:


Since all products in this shop comes from an VM installation, I only got the database I assume that the category assignments came over in the import, or that the importing created the double assignment.

Could you please check this if this is the case?

Now back to work and get this stuff done!

Thanks


Jan

The following user(s) said Thank You: Shemeam

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

  • Posts: 83780
  • Thank you received: 13568
  • MODERATOR
12 years 8 months ago #63349

Hi,

I'm glad that you found the solution to your issue.

The database structure between the different versions of VM 1.x changed regarding that. We couldn't test the import tool with all the VM versions or all the possible hacks that people used to have in their VM.
It is possible that because of such database changes in some VM versions, such problem can happen during the import. That would be difficult to fix on our end and it is less and less useful since more and more people have already migrated from VM 1.x to more recent solutions.

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

  • Posts: 198
  • Thank you received: 5
11 years 8 months ago #123299

THANK YOU! THANK YOU! THANK YOU!

I was going insane trying to find a solution to this. I did not import my products from VM but I did assign them all to the "products" Supercategory manually. I don't know why. I just thought it was a good idea.

The one thing that I think it's absolutely wrong in the way Hikashop handles that is that the module responsible for displaying the products below the category listing will display whether it is published or not. In fact, it will display even if it's trashed.

I think that's something Hikashop needs to fix. If a module, or anything else for that matter, is marked "Unpublished" It should bloody well be unpublished. Meaning invisible, not there, absent.
That way, one would be able to still have all the product belonging to the supercategory, but choose not to display those products below the category listing.

If the module is then the same that is suppose to display the products after clicking on a category, that would create an issue, no doubt, but maybe the solution would simply be to create two modules ort at the very least place a switch in the module that says "Display on category page Y/N. Or something along those lines.

I just find it unintuitive that something marked "unpublished" should still display in the front end.

EDIT: Even after taking every product out of the "Products" supercategory, they are still displaying below the category listing. This is madness. I know I can give the page a class and maybe use CSS to make them disappear, but this is silly.

Plus, after I click on a category link from that page, the category view it's missing the title.

I give up.

Last edit: 11 years 8 months ago by conticreative.

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

  • Posts: 83780
  • Thank you received: 13568
  • MODERATOR
11 years 8 months ago #123502

The enable option of a module concerns the display by the template, not the display by HikaShop.
The enable option below a menu item for a module is in the "assigned module" option of the menu item.
That way, you can have a module being displayed only by the template if you enable it only in the joomla modules manager, only displayed below a menu item if you enabled it only for a menu item in its assigned module option, nowhere if you have it disabled in the joomla modules manager and in the assigned modules option of your menu items, or displayed both by your template and below HikaShop menu items if you have it enabled in the modules manager and in the assigned modules option on your HikaShop menu items.

So if you have products being displayed below a categories listing it simply means that either you have it enabled in a bottom position in the joomla modules manager, or that you have it enabled in that categories listing menu item's associated modules option.

If you have products being displayed on the first category level while you don't have them directly linked to the main category, it means that in the hikashop options of your products listing module, that you have enabled in the associated modules option of your menu item, you have set the "sub element filter" to "all sub elements" instead of "direct sub elements" and because of that it displays all the products of the current category, even if they are in sub categories of the current category. Just change that option and that should do what you want.

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

Time to create page: 0.071 seconds
Powered by Kunena Forum