<?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: theme functions problem</title>
		<link>https://legacy.forums.gravityhelp.com/topic/theme-functions-problem</link>
		<description>Gravity Support Forums Topic: theme functions problem</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 00:56:05 +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/theme-functions-problem" rel="self" type="application/rss+xml" />

		<item>
			<title>Bobby on "theme functions problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/theme-functions-problem#post-65430</link>
			<pubDate>Mon, 09 Jul 2012 21:02:55 +0000</pubDate>
			<dc:creator>Bobby</dc:creator>
			<guid isPermaLink="false">65430@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey Ruby,&#60;/p&#62;
&#60;p&#62;Add these to your PHP&#60;/p&#62;
&#60;p&#62;// CHANGE TO Post Code&#60;/p&#62;
&#60;p&#62;add_filter(&#34;gform_address_zip&#34;, &#34;change_address_zip&#34;, 10, 2);&#60;/p&#62;
&#60;p&#62;function change_address_zip($label, $form_id){    &#60;/p&#62;
&#60;p&#62;return &#34;Post Code&#34;;&#60;/p&#62;
&#60;p&#62;}&#60;/p&#62;
&#60;p&#62;// CHANGE TO State&#60;/p&#62;
&#60;p&#62;add_filter(&#34;gform_address_state&#34;, &#34;change_address_state&#34;, 10, 2);&#60;/p&#62;
&#60;p&#62;function change_address_state($label, $form_id){    &#60;/p&#62;
&#60;p&#62;return &#34;State&#34;;&#60;/p&#62;
&#60;p&#62;}
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "theme functions problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/theme-functions-problem#post-60243</link>
			<pubDate>Thu, 24 May 2012 10:12:47 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">60243@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Awesome!&#60;/p&#62;
&#60;p&#62;Can you post your up-to-date functions file? I assume you got rid of the &#34;surcharge&#34; PHP and JS piece?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ruby on "theme functions problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/theme-functions-problem#post-60214</link>
			<pubDate>Thu, 24 May 2012 08:24:58 +0000</pubDate>
			<dc:creator>Ruby</dc:creator>
			<guid isPermaLink="false">60214@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks! Works great. What about changing city to suburb and zip to post code?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "theme functions problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/theme-functions-problem#post-59628</link>
			<pubDate>Mon, 21 May 2012 11:14:01 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">59628@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Right now the Total field isn't supported. So what you would need to do is make the new product calculation field add up all of the product fields above it, then get the 2.6 of that added together. Then that % and the selected products will be added together and the total will include the two.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ruby on "theme functions problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/theme-functions-problem#post-59601</link>
			<pubDate>Mon, 21 May 2012 09:33:04 +0000</pubDate>
			<dc:creator>Ruby</dc:creator>
			<guid isPermaLink="false">59601@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;i mean if the paypal option is selected, do total x 2.6/100 and add the amount to the total.I want to do it like:&#60;/p&#62;
&#60;p&#62;User selects Paypal. Form then calculates the Total + (2.6% of the total). How would I do that?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ruby on "theme functions problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/theme-functions-problem#post-58491</link>
			<pubDate>Thu, 10 May 2012 07:55:04 +0000</pubDate>
			<dc:creator>Ruby</dc:creator>
			<guid isPermaLink="false">58491@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;i mean if the paypal option is selected, do total x 2.6/100 and add the amount to the total.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "theme functions problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/theme-functions-problem#post-58482</link>
			<pubDate>Thu, 10 May 2012 07:25:29 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">58482@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The Total already adds up all the product fields that are selected (including the new calculated product).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ruby on "theme functions problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/theme-functions-problem#post-58456</link>
			<pubDate>Wed, 09 May 2012 22:18:08 +0000</pubDate>
			<dc:creator>Ruby</dc:creator>
			<guid isPermaLink="false">58456@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there a way to do the calculation for the total?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ruby on "theme functions problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/theme-functions-problem#post-58454</link>
			<pubDate>Wed, 09 May 2012 22:07:52 +0000</pubDate>
			<dc:creator>Ruby</dc:creator>
			<guid isPermaLink="false">58454@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok, Thank you!&#60;/p&#62;
&#60;p&#62;What about the changing city to suburb and zip to post code?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "theme functions problem"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/theme-functions-problem#post-58285</link>
			<pubDate>Wed, 09 May 2012 07:49:57 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">58285@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;With the new calculations ability on number and product fields, you don't need to write PHP to do surcharges anymore. All you need to do is create a new Product Field and set it to be a Calculation Type. Then use the merge tags available to add up all of the products and then multiply them by a percentage.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
