Bug – Custom Amount Disabled + Multi-level Donation
-
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.
- The topic ‘Bug – Custom Amount Disabled + Multi-level Donation’ is closed to new replies.