
Add options to change the suggested donation amount radio/select options when we know who is viewing the donation form, based on that Contact's past donations.
Comment | File | Size | Author |
---|---|---|---|
#11 | redhen_donation_suggest_donation-2902729-11.patch | 8.37 KB | wxactly |
Comments
Comment #2
gcbAn initial version with a single suggestion "style".
Comment #3
gcbImproved version: cleaned up code, lower bound on donation amounts to match.
Comment #4
gcbCleaned up version.
Comment #5
gcbUpdated patch that fixes the lower-bound behavior on the query, and makes it configurable.
Note that this patch also restructures the config, so if you were using the old version and apply this version you need to re-configure each donation page that uses the settings.
Comment #6
gcbMinor tweak to fix form UX logic.
Comment #7
wxactly CreditAttribution: wxactly at ThinkShout commentedMakes historical donation amounts array more flexible, and adds a hook for site builders to include other amounts for consideration by the donation suggestion algorithm.
Comment #8
wxactly CreditAttribution: wxactly at ThinkShout commentedAdded some safety checks for historical donation amounts array, and the actual contact object - in practice either of these could be empty.
Comment #9
josephr5000@yahoo.com CreditAttribution: josephr5000@yahoo.com for Cascade Bicycle Club commentedChanges:
Comment #10
wxactly CreditAttribution: wxactly at ThinkShout commentedRefactored function parameters, and added alter hook for suggestion config.
Comment #11
wxactly CreditAttribution: wxactly at ThinkShout commentedFix operator for minimum check from > to >=