News:

Looking for documentation? Take a look on our wiki

Main Menu

Sort by Category is Useless - Bug?

Started by duncan12, October 09, 2015, 23:41:23 PM

Previous topic - Next topic

hegbi

thanks GJC
how to do the same in VM 3.2.1 (J3.6.5)?

Rune Rasmussen

By checking the option in the configuration, I assume.
Configuration -> Shopfront -> Product Listing -> Show products of subcategories
Rune Rasmussen - https://www.syntaxerror.no/

Norwegian Translation Team

hegbi

thanks Rune, tried that already but can't get it to work.
could be that my template is preventing this somehow...

Rune Rasmussen

Test with default template, and also remember to clear any cache.
So fare I have only tested it in the Zeus template from OlympianThemes, and there it worked.
Rune Rasmussen - https://www.syntaxerror.no/

Norwegian Translation Team

Milbo

Just to make clear. It is template independent.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Rune Rasmussen

You're of cource right, it's how it should be. But I've seen quite many bad templates through the years, with original code and structure totaly replaced, so I wouldn't bet on it. T.ex. if I recall right, I've seen some removing product display when there is sub categories. So better be on the safe side and test default.
Rune Rasmussen - https://www.syntaxerror.no/

Norwegian Translation Team

hegbi

works like a charm!!!  ;)
my mistake, had some old product.php file in models folder
after replacing that file from fresh VM download I can confirm that child products are shown in main category as well in VM3.2.1/J3.6.5 (and enabling Configuration -> Shopfront -> Product Listing -> Show products of subcategories)

thank you Rune, Milbo and GJC!!

sandomatyas

but it loads the products only from the first level of subcategories.
Like
CatLevel1
--CatLevel2-1
-----CatLevel3-1
-----CatLevel3-2
--CatLevel2-2
-----CatLevel3-3

If I have products in CatLevel3 categories CatLevel1 won't display any of them

hegbi

thanks to http://forum.virtuemart.net/index.php?topic=97874.0
backup your product.php in \administrator\components\com_virtuemart\models\ and then replace with my attached version any try in order to show all levels...