Hi
Im currently developing a component that will interact with external system and import ST's to the userprofile.
To do this i would like to be able to use the VMModel::getModel('user');
But im running into an issue where it does not recognize the class vmmodel at all.
I tried importing shopfunctions(f).php with no result.
Is there a certain file i can import that will get me all the "environment" of vm?
I dont want to use sql directly because of updates to vm will probably at some point make my sql crash. Therefore i want to use the User model to do the actual creation of new ST's
thanks!
from inside Joomla? something like?
if (!class_exists( 'VmConfig' )) require(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_virtuemart'.DS.'helpers'.DS.'config.php');
VmConfig::loadConfig();
$model = VmModel::getModel('User');
$users = $model->getUser();
Thank you. Exactly what i needed.