The products module in the last version of Virtuemart (3.0.14) shows products from many categories, although it' s set up to display only the ones from current category. I've attached a png with my settings to make you understand thoroughly.
Top Level Category is the Root category, it means, show all.
Yes, but in Virtuemart 3.0.12 with the same settings my module displays random products from current category (the category that currently viewed product belongs to) automatically, without the need to choose one specific category or subcategory.
It was PRO that suggested that way of use. Please see the attached image.
Yes, this applies to product module. But not to category module. There is a category module layout which expands current category and shows its children (mod_virtuemart_category/tmpl/current.php). Using that, you can create a template override which display only current category and its children.
I use the Virtuemart Products module and the problem has risen after the update. I believe it's something that has to do with Category Filter. I guess I shall stay with VM 3.0.12 for a while.
Ignore my previous comment, I misread your post.
Don' t worry pal. :D
I don't think product module is meant to filter by current category. Looking at the code, category_filter only sets whether to use filter at all with specified category:
$products = $productModel->getProductListing($Product_group, $max_items, $show_price, true, false,$filter_category, $category_id);
In product model:
if ($filterCategory === TRUE) {
if ($category_id) {
$this->virtuemart_category_id = $category_id;
}
}
else {
$this->virtuemart_category_id = FALSE;
}
This settings should work.
All settting are correct and in VM 3.0.12, this is OK !
(I don't tested for now VM 3.0.14)
And PRO, the main forum poster explain it same.
So is there any solution?
I could add an extra setting. But at least a silver membership http://extensions.virtuemart.net/support/virtuemart-supporter-membership-detail
Max, you need so many time for a core function, that not work anymore since last update ?
I'm sorry to say so, but sadly this is for sure a downgrade.
Max i think it's related to the bug i have too.
Category id is unset in VM 3.0.14. in some case. So it's not working in many modules now, i think this is a core bug and not a bug in the module.
Quote from: kaiserdom on April 04, 2016, 21:08:02 PM
I'm sorry to say so, but sadly this is for sure a downgrade.
Check my post and FIX here : http://forum.virtuemart.net/index.php?topic=133744.msg463999#msg463999
It work for my case and shoud wok in your case too
Thank you
I'll try it and tell you how it goes.
Nope...it doesn't work. Thank you anyway.
Quote from: Studio 42 on April 04, 2016, 23:06:33 PM
Quote from: kaiserdom on April 04, 2016, 21:08:02 PM
I'm sorry to say so, but sadly this is for sure a downgrade.
Check my post and FIX here : http://forum.virtuemart.net/index.php?topic=133744.msg463999#msg463999
It work for my case and shoud wok in your case too
Sorry it was my mistake. I'd disabled Category Filter in the VM Product Module. Now it seems ok.
You rock my friend! 8)