Hi Tuan,
Great component!
I want to use your plugin option, and make a plugin to add users that just ordered in the correct Kunena usergroup.
I see the event 'onAfterPaymentSuccess' that I should use, but I can't get the plugin to work.
I have a plugin in the group dms, called dms_usergroups.php, with this code;
Code:
$mainframe->registerEvent('onAfterPaymentSuccess', 'plgDMSUsergroups');
function plgDMSUsergroups(&$row) {
$_SESSION['printr']['row'] = $row;
return true;
}
Just for a test, this shopuld put the order info in a session var. What's missing, do you have an example plugin perhaps?
Matthijs
Bixie