Author Topic: How to import class ps_user and use function from other module or components?  (Read 4449 times)

jvicious

  • Beginner
  • *
  • Posts: 11
  • Skype Name: jviciouscircle
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


jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28224
  • Always on vacation
    • Jenkin Hill Internet
class ps_user is not used in current VirtueMart versions.  http://forum.virtuemart.net/index.php?topic=79799.0
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 3.8.9.10473 on Joomla 3.9.28 PHP 7.4.14

jvicious

  • Beginner
  • *
  • Posts: 11
  • Skype Name: jviciouscircle
I use Joomla version 1.5 , but this version no longer support ?

Thank you for advice,

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28224
  • Always on vacation
    • Jenkin Hill Internet
Joomla 1.5 & VirtueMart 1.1 are old and no longer supported.  http://forum.virtuemart.net/index.php?topic=106865
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 3.8.9.10473 on Joomla 3.9.28 PHP 7.4.14

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10300
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jvicious

  • Beginner
  • *
  • Posts: 11
  • Skype Name: jviciouscircle
Thank you for advance.

James