• Resolved kookookjew

    (@kookookjew)


    Hi David,

    one more question — been trying to add a custom field to the donor form in a custom plugin, however my attempts have not been working. is there a page that has example code to add a field? I feel it can be very beneficial to the seamless user.

    I get how to modify the values of form elements via seamless_donations_form_donor_section filter, but how do you get a new element (hidden field) into the array to modify it?

    Btw. Been studying the codex for a bit this afternoon and see lots of potential in this plugin. Awesome job

    https://www.ads-software.com/plugins/seamless-donations/

Viewing 1 replies (of 1 total)
  • Plugin Author David Gewirtz

    (@dgewirtz)

    Thanks! There’s no architectural structure for adding fields that travel through the process. The Forms Engine was built to allow extension, but the payment system is not.

    From a programming perspective, basically I rebuilt the forms system from the ground up, allowing for that kind of activity. But the payment system is still a bit patchwork from the original adoption and doesn’t have the hooks necessary for extensibility — which is why there’s only one payment gateway.

    Frankly, I’ve been spending most of my time just trying to keep up with PayPal’s changes to be able to abstract an API across gateways — although that is definitely on my bucket list.

    –David

    P.S. Marking as resolved because answered.

Viewing 1 replies (of 1 total)
  • The topic ‘add new field via custom plugin example’ is closed to new replies.