Support » Plugin: Olimometer » Use dynamic total calculated from Gravity Forms

  • Hi Oliver,

    Love the plugin and want to donate some dosh to you for your audio streamer.

    But before I do that, could I get a hand?

    I am building a fundraising campaign page at this link.

    You will see your thermometer on that page, plus a total being calculated from purchases received from my gravity forms.

    The total is being calculated using this code.

    I am wondering if in the Olimometer options panel I can have the total load dynamically from the total received by gravity forms?

    What would I need to change in your plugin to make the total update dynamically instead of manually in the backend?


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author oshingler



    Glad you like it!

    I would add a call to your total_donations function in olimometer-class.php – look for the class’s show function. If you calculate your total as one of the first things you can do, you can then save it as the current total for that meter:

    $my_calculated_total = total_donations();
    $this->olimometer_progress_value = $my_calculated_total;

    This is the same as I use for the paypal and stayclassy integration.


    Plugin Author oshingler


    I should also add, I’m assuming you would re-write total_donations to return a value not a string.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Use dynamic total calculated from Gravity Forms’ is closed to new replies.