• Resolved jdowns1

    (@jdowns1)


    Hi. I was using these two filters below successfully but recently they appear to no longer be getting executed – were they removed from a recent plugin update? I was on 1.8.1.4 when I noticed the issue and just updated to 1.8.1.5 but that didn’t resolve it.

    charitable_campaign_donated_amount (to modify the donation amount shown on the front end)
    charitable_donation_form_amount (to modify the actual donation amount, to be sent to the payment processor etc)

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author WPCharitable

    (@wpcharitable)

    @jdowns1 both of these filters still exist in the code (charitable/includes/forms/class-charitable-donation-form.php and charitable/includes/campaigns/class-charitable-campaign.php). Currently as far as we are aware no recent changes should have effected them (I am noting that you noticed the problem BEFORE upgrading to 1.8.1.5).

    First recommendation might be to see if these are functioning in a default theme, with no non-Charitable plugins active. Insure there isn’t any server side caching on (and determine at the same time if you can see changes logged in or logged out of the site). These are general troubleshooting tips but might help try to help narrow down the possibilities.

    Thread Starter jdowns1

    (@jdowns1)

    @wpcharitable ahh I see what I did, the filter charitable_campaign_donated_amount modifies the amount in the campaign summary, above the donor form (#1 in screenshot). I’m wanting to modify the current amount on the donor form itself – the displayed amount the donor is about to submit for payment (#2 in screenshot).

    Screenshot 2024-04-03

    Plugin Author WPCharitable

    (@wpcharitable)

    @jdowns1 sounds like this might be related to what you are looking for: https://library.wpcode.com/snippet/j57g4p65/

    You can copy and paste this code into your functions.php file of your active theme (or use a snippets plugin, etc.).

    Hope this helps.

    Thread Starter jdowns1

    (@jdowns1)

    Unfortunately no, that code sets a default amount, that’s not what I’m after. I’ll keep looking, thanks.

    Plugin Author WPCharitable

    (@wpcharitable)

    @jdowns1 Thanks for the response, although yeah, maybe i’m not understanding but I went by the screenshot you sent by changing the value (say 123 instead of 100) it changes the area you pointed in your screenshot. Here’s mine: https://a.supportally.com/i/VFTLKv

    Feel free to clarify or perhaps walk through steps. There is a default custom donation amount that you can set in a donation form (that is actually a visible option in the campaign settings) but i’m not sure if that’s what you’re after.

    Thanks!

    Thread Starter jdowns1

    (@jdowns1)

    I went ahead and installed the Fee Relief extension, I think that will get me what I need. Appreciate your help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Filters to modify donation amount’ is closed to new replies.