Hello,
All above modules has is a file in path : core\fields\sjvmcategories.php
So you need to simply change (near line 46 ):
if (!class_exists('VmModel')) {
if (defined('JPATH_VM_ADMINISTRATOR') && file_exists(JPATH_VM_ADMINISTRATOR . '/helpers/vmmodel.php')) {
require JPATH_VM_ADMINISTRATOR . '/helpers/vmmodel.php';
} else {
$this->error = 'Could not find VmModel helper';
return false;
}
}
with below codes :
if (!class_exists('VmModel')) {
$vmpath_admin = $rootPath.'/administrator/components/com_virtuemart';
JLoader::register('VmModel', $vmpath_admin.'/helpers/vmmodel.php');
}
and find
protected function getCategories()
comment code
//VmConfig::loadJLang('com_virtuemart', true);
VmConfig::loadConfig();
Thanks