• Resolved ntodisco

    (@ntodisco)


    Does Give have the ability to have 2 Donation options within 1 form? For example we are selling tickets to a fundraiser where the user can select how many tickets they would like to purchase. We would also like to give them the option of purchasing raffle tickets in the same transaction. I was hoping I could modify the amount of the total donation based on selections of custom fields. Is this possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    Hi there,

    We don’t offer that ability out of the box. But it can be done relatively simply if you are a developer, or work with one.

    Here’s what you’d need:

    You can add custom fields to your Give forms in one of two ways:

    Then, once you have the fields you want added to your form, you can use jQuery to calculate and adjust the total amount based on the values of those fields. This is a really basic example of how that’s done here:
    https://github.com/impress-org/give-snippet-library/blob/master/form-customizations/give-simple-ticket-incrementer.php

    Thanks!

    Thread Starter ntodisco

    (@ntodisco)

    Hey Matt,

    So I was able to get this to work for the amount of tickets to buy. Any advice for wanting to add a second ticket incrementer to the same form for the raffle tickets and then have a total for all the tickets? Also, is there a way to make this work with the fee recovery plugin?

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    If you’re using Form Field Manager, we have a repeater field. But then your JS would have to be aggregating all those fields dynamically as well.

    Generally speaking, we’re moving into deep custom dev territory, which is outside the scope of what we can provide support for. But if you have additional questions about our premium addons, please reach out to our Priority Support team:
    https://givewp.com/support

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Dynamic Donation Total’ is closed to new replies.