<?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: Custom Total Price Calculation</title>
		<link>https://legacy.forums.gravityhelp.com/topic/custom-total-price-calculation</link>
		<description>Gravity Support Forums Topic: Custom Total Price Calculation</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 02:55:56 +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/custom-total-price-calculation" rel="self" type="application/rss+xml" />

		<item>
			<title>hpacollect on "Custom Total Price Calculation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-total-price-calculation#post-18340</link>
			<pubDate>Fri, 11 Feb 2011 17:11:34 +0000</pubDate>
			<dc:creator>hpacollect</dc:creator>
			<guid isPermaLink="false">18340@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;David,&#60;/p&#62;
&#60;p&#62;Thanks for your quick and detailed reply.  It makes sense, I'll get working on fixing this.&#60;/p&#62;
&#60;p&#62;Thanks so much!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Custom Total Price Calculation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-total-price-calculation#post-18327</link>
			<pubDate>Fri, 11 Feb 2011 15:22:01 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">18327@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Hpacollect,&#60;/p&#62;
&#60;p&#62;Here is how I would recommend accomplishing this:&#60;/p&#62;
&#60;p&#62;1 - Create another User Defined field for your Administrative fee.&#60;br /&#62;
2 - Using jQuery, bind a function to the &#60;a href=&#34;http://api.jquery.com/change/&#34; rel=&#34;nofollow&#34;&#62;change&#60;/a&#62; event of your &#34;Amount of Payment&#34; field.&#60;br /&#62;
3 - Inside this function, use your price table to determine the administrative fee and also using jQuery set this fee as the value of the &#34;Adminstrative Fee&#34; field we created in step one.&#60;br /&#62;
4 - That's it! Gravity Forms will now calculate the total of both fields. If you'd like to hide the Adminstrative field from view, just find the ID of the field and use CSS to &#34;display:none;&#34;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hpacollect on "Custom Total Price Calculation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-total-price-calculation#post-18305</link>
			<pubDate>Fri, 11 Feb 2011 14:16:34 +0000</pubDate>
			<dc:creator>hpacollect</dc:creator>
			<guid isPermaLink="false">18305@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've got a working credit card form that uses the pricing fields from 1.5RC4 and has the user enter a payment amount, then agree to a fee (it's a fee table, not a percentage), then it adds the fee to the Total field.&#60;/p&#62;
&#60;p&#62;It's functioning perfectly but I just added this code directly to the gravityforms.js file in the middle of the gformCalculateTotalPrice function.&#60;/p&#62;
&#60;p&#62;if(price &#38;gt;= 0.01 &#38;amp;&#38;amp; price &#38;lt;= 225)price = price + 10;&#60;br /&#62;
else if(price &#38;gt;= 225.01 &#38;amp;&#38;amp; price &#38;lt;= 450)price = price + 20;&#60;br /&#62;
else if(price &#38;gt;= 450.01 &#38;amp;&#38;amp; price &#38;lt;= 700)price = price + 30;&#60;br /&#62;
else if(price &#38;gt;= 700.01 &#38;amp;&#38;amp; price &#38;lt;= 925)price = price + 40;&#60;br /&#62;
else if(price &#38;gt;= 925.01 &#38;amp;&#38;amp; price &#38;lt;= 1500)price = price + 65;&#60;br /&#62;
else if(price &#38;gt;= 1500.01 &#38;amp;&#38;amp; price &#38;lt;= 2500)price = price + 105;&#60;br /&#62;
else if(price &#38;gt;= 2500.01 &#38;amp;&#38;amp; price &#38;lt;= 3500)price = price + 150;&#60;br /&#62;
else if(price &#38;gt;= 3500.01 &#38;amp;&#38;amp; price &#38;lt;= 4500)price = price + 195;&#60;br /&#62;
else if(price &#38;gt;= 4500.01 &#38;amp;&#38;amp; price &#38;lt;= 6500)price = price + 275;&#60;br /&#62;
else if(price &#38;gt;= 6500.01 &#38;amp;&#38;amp; price &#38;lt;= 8500)price = price + 360;&#60;br /&#62;
else if(price &#38;gt;= 8500.01 &#38;amp;&#38;amp; price &#38;lt;= 10000)price = price + 425;&#60;/p&#62;
&#60;p&#62;I know this is a problem when I go to do Gravity updates the file will be overwritten.  So I've looked through other threads and documentation that may point how to do this the correct way using filters, hooks, etc. but I couldn't figure out the right way to do this.&#60;/p&#62;
&#60;p&#62;Here is a link to the form, just enter a payment amount and click the &#34;I agree to the fee&#34; checkbox and you will see the total calculation.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://hpaglobalrecovery.com/online-payment-form/credit-card-payment&#34; rel=&#34;nofollow&#34;&#62;https://hpaglobalrecovery.com/online-payment-form/credit-card-payment&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Can anyone suggest a more proper way of doing this? &#60;/p&#62;
&#60;p&#62;Thanks in advance.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
