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?
just open the models have a look..
VM is beautifully clearly written
administrator\components\com_virtuemart\models\category.php etc
getChildCategoryList()
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