hi.
im trying to create custom module to display customer first and last name after login..
i found this topic for vm1 - http://forum.virtuemart.net/index.php?topic=79226.0
but when i use the code from @expertslogic i get the error "Class 'ps_user' not found"
can anyone point me to right direction how can i connect to vm user fields from custom module?
thanks a lot
Logged in to Joomla? Maybe use https://extensions.joomla.org/extension/tf-greet/ - there are other such modules.
yes, loged user.
but i need data from virtuemart fields firstname and lastname..
these standard joomla im able to show..
i just need what class to load so i have access to those vm fields..
Class 'ps_user' is from VM1
if (!class_exists( 'VmConfig' )) require(JPATH_ROOT .'/administrator/components/com_virtuemart/helpers/config.php');
VmConfig::loadConfig();
$userModel = VmModel::getModel('User');
use a function from there
e.g.
$userModel->getCurrentUser();
untested
GJC Web Design thanks a lot..