VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: kaiserdom on March 14, 2016, 15:50:38 PM

Title: VM 3.0.14 Products Module Bug
Post by: kaiserdom on March 14, 2016, 15:50:38 PM
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.

Title: Re: VM 3.0.14 Products Module Bug
Post by: Milbo on March 15, 2016, 01:15:49 AM
Top Level Category is the Root category, it means, show all.
Title: Re: VM 3.0.14 Products Module Bug
Post by: kaiserdom on March 15, 2016, 12:36:19 PM
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.
Title: Re: VM 3.0.14 Products Module Bug
Post by: kaiserdom on March 15, 2016, 13:53:12 PM
It was PRO that suggested that way of use. Please see the attached image.
Title: Re: VM 3.0.14 Products Module Bug
Post by: Ghost on March 15, 2016, 13:55:11 PM
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.
Title: Re: VM 3.0.14 Products Module Bug
Post by: kaiserdom on March 15, 2016, 14:00:36 PM
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.
Title: Re: VM 3.0.14 Products Module Bug
Post by: Ghost on March 15, 2016, 14:05:55 PM
Ignore my previous comment, I misread your post.
Title: Re: VM 3.0.14 Products Module Bug
Post by: kaiserdom on March 15, 2016, 14:09:52 PM
Don' t worry pal.  :D
Title: Re: VM 3.0.14 Products Module Bug
Post by: Ghost on March 15, 2016, 14:15:25 PM
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;
}
Title: Re: VM 3.0.14 Products Module Bug
Post by: Studio 42 on March 15, 2016, 14:24:08 PM
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.
Title: Re: VM 3.0.14 Products Module Bug
Post by: kaiserdom on March 20, 2016, 18:41:01 PM
So is there any solution?
Title: Re: VM 3.0.14 Products Module Bug
Post by: Milbo on March 22, 2016, 02:07:22 AM
I could add an extra setting. But at least a silver membership http://extensions.virtuemart.net/support/virtuemart-supporter-membership-detail
Title: Re: VM 3.0.14 Products Module Bug
Post by: Studio 42 on March 22, 2016, 11:57:20 AM
Max, you need so many time for a core function, that not work anymore since last update ?
Title: Re: VM 3.0.14 Products Module Bug
Post by: kaiserdom on April 04, 2016, 21:08:02 PM
I'm sorry to say so, but sadly this is for sure a downgrade.
Title: Re: VM 3.0.14 Products Module Bug
Post by: Studio 42 on April 04, 2016, 21:19:39 PM
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.
Title: Re: VM 3.0.14 Products Module Bug
Post by: 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
Title: Re: VM 3.0.14 Products Module Bug
Post by: kaiserdom on April 14, 2016, 17:16:49 PM
Thank you
I'll try it and tell you how it goes.
Title: Re: VM 3.0.14 Products Module Bug
Post by: kaiserdom on April 18, 2016, 09:45:42 AM
Nope...it doesn't work. Thank you anyway.
Title: Re: VM 3.0.14 Products Module Bug
Post by: kaiserdom on April 18, 2016, 11:18:47 AM
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)