Issue Details (XML | Word | Printable)

Key: CRM-4671
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed/Completed
Priority: Trivial Trivial
Assignee: Yashodha Chaku
Reporter: Tom Kirkpatrick
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
CiviCRM

Add 'message' field to personal contribution page (pcp) contributions

Created: 24/Jun/09 01:27 PM   Updated: 06/Jul/10 11:58 AM
Component/s: CiviContribute
Affects Version/s: 3.0
Fix Version/s: 3.1

Time Tracking:
Not Specified

File Attachments: 1. Text File civicrm_3.0-beta4-pcp_personal_note.patch (20 kB)



 Description  « Hide
As well as allowing the donor to leave their name along with their donation to a personal contribution page, a nice feature would be to also allow the user a way of leaving a message to go along with it. These messages should be able to be optionally displayed in the honour roll (the scrolling box that list all the donations along with the name and amount). Admin (and probably the user too) would need the ability to delete/amend bogus messages to ensure the content of the site is appropriate.

 All   Comments   Work Log   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Tom Kirkpatrick added a comment - 07/Jul/09 09:05 AM
Attached patch gets the personal note functionality working. It uses the database column that was introduced in an earlier release, so no changes to the db.

I have also added the ability to edit the details of a pcp message including the ability to change the nickname, personal note, and weather or not the contribution should show up in the honor roll (anonymous). However, I think there may be some small problems when assigning a contribution to a pcp through the CRM. The pcp and soft credit fields are both visible on the contribution edit form, but if you select a pcp page, soft credit is actually impled by the owner of the pcp page, and so the soft credit dropdown has no effect. Perhaps this needs to be made more clear somehow... suggestions?

I was also unsure of the best place to do some things, soecifically, creating up the soft credit db entry. I chose to do it in CRM/Contribute/BAO/Contribution.php in the end. I did it in a very similar way to how it is done in CRM/Contribute/Form/Contribution/Confirm.php - it seems to me that perhaps the code in Confirm.php would be no longer needed with it done this way?

Tom Kirkpatrick added a comment - 07/Jul/09 08:45 PM
The above patch does not yes add the personal message into email receipts (either user or admin). When discussed with dgg on IRC, we concluded that this was probably necessary in order to inform users of the messages so that they can review them and take action if they are inappropriate etc.

I'll try and get an updated patch that includes this tomorrow.

Tom Kirkpatrick added a comment - 09/Jul/09 09:38 PM
Actually, the pcp personal message IS already included in the email receipts, so I don't think any further work is required on this patch. At least, no additional functionality is needed - just review and testing. woo hoo!

Tom Kirkpatrick added a comment - 11/Jul/09 06:50 PM
PAtch updated to also fix CRM_Contribute_BAO_Contribution:getSoftContributionList() to include the full range of pcp properties (pcp_display_in_roll, pcp_roll_nickname and pcp_personal_note) in its return.

Tom Kirkpatrick added a comment - 23/Sep/09 01:04 PM
Patch updated to work with 3.0-beta4

Tom Kirkpatrick added a comment - 16/Oct/09 08:49 AM
Just noticed that someone started working on this... I've been using this patch for a good while now, and it works well. One thing I have noticed though is that when you edit a contribution, the option to make a contribution listed anonymously is missing. You can edit the name and message, and remove the contribution form the honor role completely, but you can't make it appear listed as anonymous - which is an option when you make the donation in the first place.

David Greenberg added a comment - 21/Oct/09 04:19 PM
Sunil - I'd like to do a quick QA pass on this as well so assign to me when you're done reviewing it. thx!

Sunil Pawar added a comment - 22/Oct/09 08:22 AM
Assign to dgg as per comments

Some of the point noticed ..

1. View Contribution -> Personal Campaign Page info Display looks too complex if Note is present (didn't get which one is label / value )
2. Edit Contribution -> if Show my contribution in the public honor roll checkbox is checked then field label 'Name' and 'Personal Note' are too away from HTML fields

3. i. Do the On line contribution using PCP but don't check the 'honor roll' checkbox
   ii. Edit the Same contribution record you will find 'honor roll' checkbox is unchecked [OK]
   iii. Select checkbox, No radio button is auto selected
        [here 'Include my name and message' radio button should be auto selected (should be same like Online contribution page for PCP )]
   iv. if You save the form without selected any radio button, form is saved without error but in HONOR ROLL only Amount is showing

   => if 'honor roll' checkbox is checked then first radio button( Include my name and message ) should be auto selected.

Basic functionality working fine....

Neha Kulkarni added a comment - 06/Jul/10 11:58 AM
verified in r 28588