The Seamless donations plugin works as far as processing the transaction, but two important fields under the Donor tap are not displaying: “Occupation” and “Employer”. It is a requirement by the federal government to report these two pieces of information.


This is a bug in plugin itself. Employer and occupation data are saved in database, but it is not shown on appropriate listing pages. We’ve reported it to the authors.

Anyway, columns dedicated to employer and occupation were left empty on donors list index.

Solution is very simple. It will require a bit of hardcoding, but hopefully authors will fix this in future releases.

1. Go to wp-content/plugins/seamless-donations/cpt/cpt-donors.php (before changes, it is recommended to backup this file)
2. find these lines:

 

public function cell_donor_employer ( $sCell, $iPostID ) { // cell_{post type}_{column key}
return esc_attr ( get_post_meta ( $iPostID, '_dgx_donate_donor_employer', true ) );
 }
public function cell_donor_occupation ( $sCell, $iPostID ) { // cell_{post type}_{column key}
return esc_attr ( get_post_meta ( $iPostID, '_dgx_donate_donor_occupation', true ) );
 }

 and change them to read:

 

public function cell_donor_employer ( $sCell, $iPostID ) { // cell_{post type}_{column key}
return esc_attr ( get_post_meta ( $iPostID, '_dgx_donate_employer', true ) );
 }
public function cell_donor_occupation ( $sCell, $iPostID ) { // cell_{post type}_{column key}
return esc_attr ( get_post_meta ( $iPostID, '_dgx_donate_occupation', true ) );
 }

 

3. save and you will see matching fields in donors list

NOTE: Make sure to complete steps above if you experience this problem again after the upgrade.