VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: pivovary on April 08, 2025, 13:37:29 PM

Title: search by categories in model Product
Post by: pivovary on April 08, 2025, 13:37:29 PM
in model product.php on line 605

$cats .= $catId; //here missing comma, should be $catId .',';


foreach($virtuemart_category_id as $catId){
$childcats = $catmodel->getChildCategoryList(1, $catId, null, null, false);
foreach($childcats as $k=>$childcat){
if(!empty($childcat->virtuemart_category_id)){
$cats .= $childcat->virtuemart_category_id .',';
}
}
$cats .= $catId; //here missing comma, should be $catId .',';
}