VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Kuubs on October 24, 2019, 14:32:28 PM

Title: Where to see available functions?
Post by: Kuubs on October 24, 2019, 14:32:28 PM
Hello,

I have found on this website a way to load for example the category model and check how many products are in that category like this:


$categoryModelTemp= VmModel::getModel('category');
$categoryModelTemp->countProducts($category->virtuemart_category_id );


But now I want to do something more, like check if it has children categories, how much etc. but I cannot find anywhere which functions are available for the different models. I checked dev.virtuemart.net but that seems not really working well. Anyone has an idea?
Title: Re: Where to see available functions?
Post by: GJC Web Design on October 24, 2019, 14:52:41 PM
just open the models have a look.. 

VM is beautifully clearly written

administrator\components\com_virtuemart\models\category.php etc

getChildCategoryList()
Title: Re: Where to see available functions?
Post by: Kuubs on October 24, 2019, 15:04:38 PM
Quote from: GJC Web Design on October 24, 2019, 14:52:41 PM
just open the models have a look.. 

VM is beautifully clearly written

administrator\components\com_virtuemart\models\category.php etc

getChildCategoryList()

Thanks, that was quite obvious