VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Questions VM 1.1 ( the only active board for the old version) => Topic started by: jvicious on December 26, 2014, 11:08:09 am

Title: How to import class ps_user and use function from other module or components?
Post by: jvicious on December 26, 2014, 11:08:09 am
How to import class ps_user and use function from other module or components?

I just modified module user registration on joomla virtuemart but cannot add to database  #_{vm}_user_info table and association table.

Thank you for your advice.
James

Title: Re: How to import class ps_user and use function from other module or components?
Post by: jenkinhill on December 26, 2014, 11:55:27 am
class ps_user is not used in current VirtueMart versions.  http://forum.virtuemart.net/index.php?topic=79799.0
Title: Re: How to import class ps_user and use function from other module or components?
Post by: jvicious on December 27, 2014, 02:30:36 am
I use Joomla version 1.5 , but this version no longer support ?

Thank you for advice,
Title: Re: How to import class ps_user and use function from other module or components?
Post by: jenkinhill on December 27, 2014, 11:11:06 am
Joomla 1.5 & VirtueMart 1.1 are old and no longer supported.  http://forum.virtuemart.net/index.php?topic=106865
Title: Re: How to import class ps_user and use function from other module or components?
Post by: GJC Web Design on December 27, 2014, 13:52:17 pm
to use a class in VM1.1 import the parser, import the class file and call the class

e.g.

// Load the virtuemart main parse 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' );
}

//then

require_once ( CLASSPATH. 'ps_user.php');

//then

$ps_user = new ps_user;

not tested but should work
Title: Re: How to import class ps_user and use function from other module or components?
Post by: jvicious on January 08, 2015, 10:01:52 am
Thank you for advance.

James