• Resolved dcbrewery

    (@dcbrewery)


    I am creating an auto generated Give donation form using Caldera. I am trying to make the forms auto populate as Multi Level Donations with 3 choices ($25,$50,$100) plus Other. However when someone submits to create the form I receive these errors…..

    Warning: Invalid argument supplied for foreach() in code/wp-includes/class-wp-list-util.php on line 153 $0 – $0

    Warning: Invalid argument supplied for foreach() in code/wp-content/plugins/give/includes/forms/template.php on line 146

    Warning: Invalid argument supplied for foreach() in code/wp-content/plugins/give/includes/price-functions.php on line 96

    Warning: Invalid argument supplied for foreach() in code/wp-content/plugins/give/includes/forms/template.php on line 501

    I tried mapping
    _give_price_option to multi
    _give_donation_levels_0__give_amount to 25.00
    _give_donation_levels_1__give_amount to 50.00
    _give_donation_levels_2__give_amount to 100.00
    _give_donation_levels2_give_default to default

    I’ve also tried give_has_variable_prices and _give_amount and others I don’t recall

    I also tried PHP 5.6 and PHP 7. Same issues on both.

    Any help is appreciated.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Matt Cromwell

    (@webdevmattcrom)

    Hi there,

    I assume you’re going from this tutorial?
    https://givewp.com/create-a-peer-to-peer-give-campaign-with-caldera-forms/

    I actually don’t think that’s going to be possible, because the additional levels in your Give form are created manually when you click on “Add Level”. They don’t actually exist in the form unless you click on “Add Level” so your CF submissions can’t populate them.

    Sorry to be the bearer of bad news on that.

    Thread Starter dcbrewery

    (@dcbrewery)

    Yes I followed that tutorial (which is fantastic).

    That is sad news, was hoping it was possible as that would be a huge time saver.

    Thank you for replying. And thank you for all you do.

    Plugin Author Matt Cromwell

    (@webdevmattcrom)

    No worries, thanks for using Give!

    Thread Starter dcbrewery

    (@dcbrewery)

    What about via Pods? Is it possible to have Pods automatically add “add a level” .

    Plugin Author Matt Cromwell

    (@webdevmattcrom)

    I don’t have enough experience with Pods to know. But I’ll ping my friend @shelob9 who is the Lead Dev/Owner of Caldera Forms, and a developer of Pods. He’s got all the answers.

    • This reply was modified 7 years, 2 months ago by Matt Cromwell.

    Am I understanding correctly that “_give_donation_levels_0__give_amount” is a meta field? If so, does adding a level mean adding “_give_donation_levels_3__give_amount” and “_give_donation_levels_4__give_amount”, etc?

    If yes to all above, then no. Pods is good for generating UI for custom fields, but you have to declare fields. Doesn’t work well when fields use dynamically generated names.

    Plugin Author Matt Cromwell

    (@webdevmattcrom)

    Ya, that’s what I assumed, which leads back to the bad news: No go.

    Thanks for clarifying @shelob9

    Thread Starter dcbrewery

    (@dcbrewery)

    If I could have coffee with two developers who would it be…..so many questions for you both.

    Thanks for the Celebrity WordPress Help Forum

    Josh – Go Noles! FSU grad here.

    @dcbrewery Come to WordCamp LA this weekend or WordCamp US in December and the 3 of us can get coffee together. Also, I suspect WordCamp Orlando is an option as well, but not sure if Matt is going or not, but I am.

    And yes, Go Noles!

    Thread Starter dcbrewery

    (@dcbrewery)

    Will you be at the NYC WordCamp?

    I will be. Come say hi ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Multi-Level Donation (Caldera forms & Give)’ is closed to new replies.