If you try to select "Full HTML" for the input type of the header or footer of a Donate form, then the form displays only "N/A" where it should display the content. This only appears to happen for non-admin/non-logged-in users.

CommentFileSizeAuthor
#2 donate.inc_.patch1.61 KBmikedickey
#1 donate.inc_.patch1.5 KBmikedickey

Comments

mikedickey’s picture

StatusFileSize
new1.5 KB

If you select an input format for the header, footer or confirmation message that is not "Filtered HTML", the module always displays "n/a" for that content to any users who do not have permission to CREATE content using said input format.

I believe this is caused by the the check_markup() function (inherently) being called with $check = TRUE. See these two related threads on the problem which is basically a bug in D6 (fixed in D7):

http://drupal.org/node/435520
http://drupal.org/node/458204

A patch that fixes this is attached.

Also included is a small patch that passes the total amount donated to the confirmation path URL as a "total=XXX" query parameter. This allows the confirmation page to know how much was donated, which is especially useful for analytics purposes (i.e. triggering a Google Analytics ecommerce event via a JS tag).

mikedickey’s picture

StatusFileSize
new1.61 KB

I revised the patch to also append a "total_paid" query variable to the redirect URL. This requires a corresponding patch that I submitted for pay_form. By having both the 'total' and 'total_paid' variables available to you "thank you page" you can display the "thank you" message if they match, and a "transaction failed" message if the transaction failed (total_paid will be zero).