Show number of items in category also for main category
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 44
- Joined: 05 Feb 2018, 09:57
Show number of items in category also for main category
Hi. Is there an easy way how to show number of products for main categories, not only subcategories? Maybe in config or something. I couldnt find it in docs. Thanks.
- Attachments
-
- Snip20180729_21.png (94.33 KiB) Viewed 1905 times
Re: Show number of items in category also for main category
Try this setting: https://aimeos.org/docs/Configuration/C ... sts/levels
This will show all products from sub-categories in the parent category. If you've assigned a product to two or more sub-categories, the will be shown multiple times in the main category.
This will show all products from sub-categories in the parent category. If you've assigned a product to two or more sub-categories, the will be shown multiple times in the main category.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 44
- Joined: 05 Feb 2018, 09:57
Re: Show number of items in category also for main category
I tried that - it has no effect on showing products, neither for showing product count in main category name.
Re: Show number of items in category also for main category
The product from the sub-categories are shown in the list view of the parent category (clear the cache if nothing has changed), but that's not reflected in the product counts. There is some JS code missing that adds the counts to the parent counts in the template:
https://github.com/aimeos/ai-client-htm ... andard.php
Are you able to create a PR for this? We would merge it into the HTML client afterwards.
https://github.com/aimeos/ai-client-htm ... andard.php
Are you able to create a PR for this? We would merge it into the HTML client afterwards.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star