hello.
Bob's Guides has a page showing how to use a
MODx Revolution Snippet called
ThermX, which creates a fundraising thermometer for placement on a web page...
@
https://bobsguides.com/thermx-tutorial.html
i've found many html5/css/js/jquery progress bars of all shapes & sizes, but the one thing lacking in all of these is an
automated integration with Paypal. all of them that i've found,
including this one Bob recommends, requires you to
manually update the amount or percentage number in the code for the progress bar meter thermometer thing to show its representation.
i have seen a few plugins specific to Wordpress that "might" do this, but i did not spend time investigating since, well, we don't use WP! (duh) ;-)
i have been doing this
manual method for over a year now and it's become very tiresome. i've been using the
Easy-Pie-Chart Jquery plugin @
https://github.com/rendro/easy-pie-chart
(i'm not stuck in to using this particular one, am open to others if better)
for reference, am using it on this page @
http://sanctuaryinternational.com/test-giving
note: i changed the url since original post, taking out my progress pie. use this test-giving page to see original & what i'd like to go back to (barring a better method).
OKAY, Now... in case anyone (Bob? Others?) wouldn't mind donating a bit of their own time & expertise here, we/i would REALLY appreciate it. i'm proficient in HTML & CSS but can only do minor customizations to Javascript, Jquery, & PHP.
i have strolled thru the
Paypal API documentation and it's just way over my head; i couldn't figure it out at all.
WHAT WE NEED is...
...a way to read back from our Paypal account, all the income amounts for the current month.
...this meter should reset on the first of each month.
...IF we continue to use the above mentioned Easy-Pie-Chart then the amounts need to be converted into percentages towards the monthly goal.
...i imagine there should be a way in the code to stipulate the monthly goal amount, then the system would fetch the current income total from Paypal & either show the amount towards goal or the percentage towards goal.
possible hitches...
...it seems to me that this should NOT fetch the current balance in Paypal, because the money in Paypal is routinely transferred to a bank account; sometimes weekly, sometimes daily, depending on needs. so it would somehow have to know how much money has been donated during that month, whether or not it is still in Paypal.
...also, there are 2 types of donations: a "One-Time Donation" and an "Auto-Monthly Donation". so it seems to me that this code cannot simply count on the form submissions on the webpage, since the
Paypal Subscriptions that occur automatically outside of this webpage (directly within Paypal) need to also be counted towards the monthly goal.
does that all make sense?
if this is just too big of a coding job to do without compensation, please let me know how much you might charge us to write it for us & we'll just have to see.
THANKS for your time,
-jason.
[ed. note: syberknight last edited this post 8 years, 11 months ago.]