<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Get Total Price Submitted Across All Entries</title>
		<link>https://legacy.forums.gravityhelp.com/topic/get-total-price-submitted-across-all-entries</link>
		<description>Gravity Support Forums Topic: Get Total Price Submitted Across All Entries</description>
		<language>en-US</language>
		<pubDate>Sun, 12 Apr 2026 08:15:09 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/get-total-price-submitted-across-all-entries" rel="self" type="application/rss+xml" />

		<item>
			<title>blueprintds on "Get Total Price Submitted Across All Entries"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-total-price-submitted-across-all-entries#post-22599</link>
			<pubDate>Tue, 05 Apr 2011 23:07:46 +0000</pubDate>
			<dc:creator>blueprintds</dc:creator>
			<guid isPermaLink="false">22599@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Except for when commas are thrown in the mix, am I right? It would work for anything less than $1,000, though.&#60;/p&#62;
&#60;p&#62;I think my simple work-around is to use a normal textbox and your initial get_pledge_total() function. I'll just add a note for users to not use commas, and maybe later I'll add some validation to actually prevent them from doing so.&#60;/p&#62;
&#60;p&#62;Thanks for the awesome work, guys!&#60;/p&#62;
&#60;p&#62;Grace and Peace,&#60;br /&#62;
Brian Richards
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Get Total Price Submitted Across All Entries"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-total-price-submitted-across-all-entries#post-22569</link>
			<pubDate>Tue, 05 Apr 2011 15:54:12 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">22569@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Actually, the values are stored formatted as currency, so the function above won't work either.&#60;br /&#62;
The one below will work for US dollars.&#60;br /&#62;
&#60;a href=&#34;http://pastie.org/pastes/1760191/text&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/pastes/1760191/text&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Get Total Price Submitted Across All Entries"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-total-price-submitted-across-all-entries#post-22563</link>
			<pubDate>Tue, 05 Apr 2011 14:58:44 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">22563@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Brian,&#60;br /&#62;
The payment_amount column will only be populated when PayPal is activate for that form. Here is the function to sum your donation field&#60;br /&#62;
&#60;a href=&#34;http://pastie.org/1759958&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1759958&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You will need to pass the field ID as well (in your case, it is 7)&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;get_pledge_total(3,7);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>blueprintds on "Get Total Price Submitted Across All Entries"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-total-price-submitted-across-all-entries#post-22555</link>
			<pubDate>Tue, 05 Apr 2011 14:01:23 +0000</pubDate>
			<dc:creator>blueprintds</dc:creator>
			<guid isPermaLink="false">22555@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks, David! This is a super slick function. I had to mod the table name because this is a network install, but it does indeed work.&#60;/p&#62;
&#60;p&#62;I do face one problem, though, as part of the current value is calculated with via a pledge form (&#60;a href=&#34;http://cyclethecampus.org/rider-info/pledges/&#34; rel=&#34;nofollow&#34;&#62;http://cyclethecampus.org/rider-info/pledges/&#60;/a&#62;) that has a user-specified donate input and no paypal routing. I poked around the database for my submitted entry and saw no value passed for the payment_amount. Is there a similar way to grab the sum of this donate field across all entries?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
-Brian
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Get Total Price Submitted Across All Entries"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-total-price-submitted-across-all-entries#post-22541</link>
			<pubDate>Tue, 05 Apr 2011 12:58:58 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">22541@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Blueprint,&#60;/p&#62;
&#60;p&#62;Paste &#60;a href=&#34;http://pastie.org/1759512&#34; rel=&#34;nofollow&#34;&#62;this function&#60;/a&#62; in your theme's functions.php and then you can call the function anywhere you want to display the total like so:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
echo get_payments_total(25);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>blueprintds on "Get Total Price Submitted Across All Entries"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-total-price-submitted-across-all-entries#post-22512</link>
			<pubDate>Tue, 05 Apr 2011 11:22:58 +0000</pubDate>
			<dc:creator>blueprintds</dc:creator>
			<guid isPermaLink="false">22512@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I recently launched a site, &#60;a href=&#34;http://cyclethecampus.org&#34; rel=&#34;nofollow&#34;&#62;http://cyclethecampus.org&#60;/a&#62;, that accepts pledges and donations for a fundraiser event. In the header is a thermometer indicating the total amount of all pledges submitted. Is there a way to grab this total dynamically?&#60;/p&#62;
&#60;p&#62;Our pledge form is here, &#60;a href=&#34;http://cyclethecampus.org/rider-info/pledges/&#34; rel=&#34;nofollow&#34;&#62;http://cyclethecampus.org/rider-info/pledges/&#60;/a&#62;, the amount field is a donation field.&#60;/p&#62;
&#60;p&#62;[BONUS]&#60;br /&#62;
If we switch the thermometer to show actual donations received, is there a way to get the total of all entries, conditionally based on payment status.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
