JoomDonation

More than just donation form

YOU ARE HERE

Joom Donation plugin development

E-mail Print PDF

As described in the product description , Joom Donation is now a plug-ins enabled extension . There are two events :

  1. OnAfterStoreDonor  : The event will be raised when all information of donor stored in the database . You can trigger this even to add donor to your mailing list . subscribe donors into newsletter system (See our newsletter plugin)
  2. OnAfterPaymentSucess : This even will be raised when the payment is successfully processed . You can trigger this even to grant access to users to any resource of your site  : Docman documents (see our Docman plugin ),  allow users to read some articles which require pay to read .....

We encourage developers to developer to develop plugins for Joom Donation to make it the powerful and best donation system for Joomla(TM) . Basically, you can write plugin for Joom Donation like any Joomla(TM) plugin . Look at the sample below, you will see how easy to develop plugin for Joom Donation :

Syntax for OnAfterStoreDonor plugin :

 
 
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$mainframe->registerEvent( 'onAfterStoreDonor', 'plgSampleOnAfterStoreDonor' );
/**
 * Plugin description here
 *
 * @param object $row Donor Object
 */
function plgSampleOnAfterStoreDonor($row) {
 //You code goes here
 //You can access any information of donor . For example :
 //$row->first_name : First name
 //$row->last_name : Last name, 
 //$row->email : Email
 //$row->amount : Donation amount
}
 
?>
 
 
 

Syntax for OnAfterStoreDonor plugin :

 
 
<?php
 // no direct access
 defined( '_JEXEC' ) or die( 'Restricted access' );
 $mainframe->registerEvent( 'nAfterPaymentSuccess ', 'plgSampleOnAfterPaymentSuccess ' );
 /**
 * Plugin description here
 *
 * @param object $row Donor Object
 */
 function plgSampleOnAfterPaymentSuccess  ($row) {
 //You code goes here
 //You can access any information of donor . For example :
 //$row->first_name : First name
 //$row->last_name : Last name, 
 //$row->email : Email
 //$row->amount : Donation amount
 }
 
?>
 
 
 

 

Comments (0)Add Comment

Write comment
You must be logged in to a comment. Please register if you do not have an account yet.

busy