• Resolved tmendes

    (@thaissamendes)


    Hi,
    I found a problem when Custom Amount is disabled, and Multi-level Donation is selected: on our website, a javascript error is shown when we select a different amount, no matter if Display Style is Buttons or Dropdown or Radios:
    “t is undefined”
    That happens because, for some reason, when unFormatCurrency is called in that case, the second parameter (“t” on minified give.js) isn’t set. That causes the amount not be updated in the give_amount field, and therefore not be sent correctly to PayPal.
    I fixed that manually by adding the following code to give.js:

    From:
    unFormatCurrency:function(e,t){if(“string”==typeof e)
    To:
    unFormatCurrency:function(e,t){if(t==undefined)t=’.’;if(“string”==typeof e)

    Of course that’s just a workaround, I needed the forms to work, that’s why I manually added that. But this bug needs to be fixed, otherwise it’ll stop working when we update the plugin again.

    We’re using WP 4.9.4 and Give Plugin 2.1.6.

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

    (@webdevmattcrom)

    Hi @thaissamendes — thanks for your detailed report of the issue you’re facing. I’m not able to replicate that JS error currently though. I’m glad your workaround worked for your purposes, but in order for us to create an issue for development to resolve it I need to replicate the issue.

    Can you provide your System Info? That’s found in “Donations > Tools > System Info”. Perhaps there’s a certain setting or other plugin or Give addon that is contributing to that problem in one way or another.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Bug – Custom Amount Disabled + Multi-level Donation’ is closed to new replies.