Hello,
Joomla 3.4.8
VM 3.0.12
How can I display the products of all subcategories in the main category ?
Thank you
lgiulio
			
			
			
				administrator\components\com_virtuemart\models\product.php ~ line 332
enable the deeper query
if(true){
				$where[] = ' `pc`.`virtuemart_category_id` = ' . $virtuemart_category_id;
			} else {
				/*GJC add subcat products*/
				$catmodel = VmModel::getModel ('category');
				$childcats = $catmodel->getChildCategoryList(1, $virtuemart_category_id,null, null, true);
				$cats = $virtuemart_category_id;
				foreach($childcats as $childcat){
					$cats .= ','.$childcat->virtuemart_category_id;
				}
				$joinCategory = TRUE;
				$where[] = ' `pc`.`virtuemart_category_id` IN ('.$cats.') ';
			}
			
			
			
				Thank you.
I can not understand where to change .
Can you help me?
lgiulio
			
			
			
				try changing
if(true){
to 
if(false){
			
			
			
				works, but does not work filter by manufacturer