Any questions about Documents Sellers, post it here .

Using DMS Plugins

  • Matthijs Alles
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 1 month ago #2472 by Matthijs Alles
Using DMS Plugins was created by Matthijs Alles
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

Please Log in or Create an account to join the conversation.