(3.0.2) getCategoryTree return an empty array in front end modules

Started by burnout_it, December 23, 2014, 17:27:53 PM

Previous topic - Next topic

burnout_it

The latest version return an empty categories array on the front end modules.

For testing replace in modules\mod_virtuemart_category\mod_virtuemart_category.php

//$categories = $categoryModel->getChildCategoryList($vendorId, $category_id);
$categories = $categoryModel->getCategoryTree(0,0,false,'');


Any idea?

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

burnout_it

Thanks Milbo.

I temporarily solved with a custom recursive function to return the needed data on my module.

getCategoryTree not touch the Vendor ID param. An additional input where investigate can be appreciate.




Milbo

Please try vm3.0.3 should be fixed there, was a cache problem
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Dom64

Milbo says:

QuotePlease try vm3.0.3 should be fixed there, was a cache problem


I use vm3.0.8 and the problem is clearly there
$categoryModel->getCategoryTree(117,0) returns an empty array (117 is th id of one of my categories with subcategories)
$categoryModel->getCategoryTree() returns an empty array... !!

So, where's the fix of VirtuMart's getCategoryTree?

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/