Joomla 1.5.26
Virtuemart 1.1.9
I'd like to get data from VM database in a module using the functions of ps_product.php. Some work, some don't.
Calling functions in ps_product that call other functions with "$this->" result in such an error message:
Fatal error: Call to undefined method JDocumentRendererModule::get_field() in (URL)/administrator/components/com_virtuemart/classes/ps_product.php on line XXX
I included in my code:
if( file_exists(dirname(__FILE__).'/../../components/com_virtuemart/virtuemart_parser.php' )) { require_once( dirname(__FILE__).'/../../components/com_virtuemart/virtuemart_parser.php' ); } else { require_once( dirname(__FILE__).'/../components/com_virtuemart/virtuemart_parser.php' ); } require_once(CLASSPATH.'ps_product.php');
How could I resolve this problem?