Display products from all subcategories

  • Posts: 20
  • Thank you received: 0
9 years 3 weeks ago #248991

-- HikaShop version -- : HikaShop Business: 2.6.3
-- Joomla version -- : Joomla! 3.4.8 Stable [
-- PHP version -- : 5.4.45

Hi guys
Really like Hikashop an congratulate on great job making it.

I am working on a customers site (farming products) and he gave some requirements. We created a lot of product categories and subcategories with top 6 (displayed like main navigation on site). It is static part of the site and it wont change regarding on page user is at the moment. For that I used module Categories listing (list) and it works nice. I have created menu item Category display (izdelki) and it works as it should: displays subcategories and below them displays products that are directly in main category.

Now, what mu customer wants to accomplish:
1. When user click on a link to main category in main menu, he wants to see random products that are in all subcategories and in subsubcategories displayed as DIVs, without subcategories displayed in main area.
2. In side bar, we need module that will display list of subcategories (only first level) of main category. That list should be synchronized with category we are looking right now. (this one I managed to make it work creating another instance of category list module, but it synchronize only when clicked on a link in module itself, not from another module - main navigation).


3. On main page (index.php) we want to have one more list that will have links to different categories and/or subcategories. When clicked on link, it must show only PRODUCTS in specified category and its subcategories, not subcategories. Subcategories must be displayed as a list in module I was talking in second part of this question.


Now, I am figuring - there is a way to modify php files, but I am not so good in php and I could screw things. Is there some simply solution for this?

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

  • Posts: 84424
  • Thank you received: 13720
  • MODERATOR
9 years 3 weeks ago #248992

Hi,

1. In the "menu" setting of your module used as the main navigation, you have selected a categories listing menu item. So when you click on a category of that module, it displays the subcategories of that category.
If you want to have instead the products of that category, you want to change the type of that menu item (or change that menu item altogether) to a "products listing". Then, in the settings of the products listing menu item, just configure it with the "sub element filter" to "all sub elements" and turn on the "random" option.

2. That's not what I see on your website. The side bar module seems to synch with the current category regardless from where I go to a category. Could you provide more details on how to reproduce the problem ?

3. In your module's menu setting, select a products listing menu item instead of a categories listing menu item and it will do that.

It doesn't look like what you're talking about requires modifying php files as far as I understand.

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

  • Posts: 20
  • Thank you received: 0
9 years 1 week ago #250336

Hi again
I am still strugling with some navigation issues on this site and I need some advice about it.
We have manu sub-categories, up to 7th step down.

In order to make products more available to user (and skip all the clicking on subcategories), my client asked me to do next thing:
When you click on one of the 6 main categories you get all products from all levels of subcategories randomly displayed. Optionaly, first sublevel of categories should be displayed as a side menu. When you go to next level subcategory, that menu should be synchronized and shows subcategories from the level you are curently in, and so on.

Now, what I did:
As main display on my site I used "menu item - category listing" to display list of categories as list on top of the page and products from all subcategories.
Also I made module in sidebar for categories listing with synchronize option "on" and it works fine (showing categories from the level user is curently on).

But, when user gets to the last level subcategory or to the product page - module dissapears and also the category listing on top of the page. I need this to be displayed even on last level subcategory listing, even though it does not have any subcategories. In that case it should display listing for parent category of the curently displayed. It has to stay that way also when you get to the product page. Is there any way to achieve this.

P.S. I use generated URLs for breadcrumbs, so it is not an option for navigation through all subcategories on the store. For example, when user clicks on a product (that is placed in a 6th level subcategory) from category listing displaying the third level subcategory, breadcrumbs skips all steps between third and 6th level. I attached some images for clarity.

Thanx

Attachments:

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
9 years 1 week ago #250409

Hello,

Can you provide config screenshot of these module and listing ?
Maybe some restriction page ?
You can check to by using Protostar template in order to see, if your listing and module appear, the issue come from your template.
And so, contact your template provider support.

Awaiting news from you.

Regards.

Last edit: 9 years 1 week ago by Philip.

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

  • Posts: 20
  • Thank you received: 0
9 years 6 days ago #250590

Hi
I tried with protostar template, same thing happens.
here are screenshots of settings for menu listing I use as main view and for module listing (sidebar).

Attachments:

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

  • Posts: 84424
  • Thank you received: 13720
  • MODERATOR
9 years 5 days ago #250660

Hi,

Unfortunately, there is no "synchronize with current element and display the child categories of its grand father category" setting to do what you want.
So you won't be able to achieve what you want easily.
You have two options:
- you create one categories listing module, which is not synchronized, and which is set to display all the child categories of a grand father category, and you use the extension "Advanced modules manager" to configure that module to display for all the grand children categories of that grand father category and all of their products.
- you have one not synchronized module which is configured to display all the categories and you develop a custom plugin implementing the onBeforeCategoryListingLoad trigger to add conditions to the MySQL query loading the categories of that module to only display the categories you want on the pages you want for your needs:
www.hikashop.com/support/documentation/6...eCategoryListingLoad

The first option will take quite some time to manage it but doesn't require any coding skills, the second won't take time to manage, but requires coding skills to implement it.

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

Time to create page: 0.044 seconds
Powered by Kunena Forum