Author Topic: Updating user  (Read 2802 times)


  • Beginner
  • *
  • Posts: 3
Updating user
« on: January 22, 2009, 00:19:40 am »
Hello everyone, I got a simple question on virtuemart coding.

Anyone know how to update user using virtuemart function,
I do the following to get user,
Code: [Select]
$ps_user = new ps_user( ) ;
$vm_user = $ps_user->getUserInfo($GLOBALS['auth']['user_id']);

Then I make some update on the field, I try to use
$ps_user->update() function and $ps_user->setUserInfor($vm_user, $GLOBALS['auth']['user_id'])

but none of them work.

Any suggestion?