search by categories in model Product

Started by pivovary, April 08, 2025, 13:37:29 PM

Previous topic - Next topic

pivovary

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 .',';
}