News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Where to see available functions?

Started by Kuubs, October 24, 2019, 14:32:28 PM

Previous topic - Next topic

Kuubs

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?

GJC Web Design

just open the models have a look.. 

VM is beautifully clearly written

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

getChildCategoryList()
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Kuubs

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