<?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: Dynamic Price</title>
		<link>https://legacy.forums.gravityhelp.com/topic/dynamic-price</link>
		<description>Gravity Support Forums Topic: Dynamic Price</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 21:40:57 +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/dynamic-price" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Dynamic Price"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-price#post-46949</link>
			<pubDate>Fri, 20 Jan 2012 02:42:52 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">46949@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Have you seen this tutorial?&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gravity_Forms_Pricing:_Adding_Tax&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gravity_Forms_Pricing:_Adding_Tax&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>payments@applecopywriting.com on "Dynamic Price"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-price#post-46775</link>
			<pubDate>Wed, 18 Jan 2012 17:11:23 +0000</pubDate>
			<dc:creator>payments@applecopywriting.com</dc:creator>
			<guid isPermaLink="false">46775@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
   I want to add this functionality to the form.  I want the price per unit to decrease when quantity is increased. I am using products (drop-down) and quantity (drop-down) fields. I have a very simple php if-else condition for this but i am dont know how to integrate this with the form. I have read about using hooks but i failed to use them. Please help me with this. Here is the php statement&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function get_price(baseprice, quantity){

      if(quantity ==1)
      {
       total_price = baseprice*quantity;
      }
      else if(quantity&#38;gt;1 &#38;amp;&#38;amp; quantity &#38;lt;=10)
      {
       total_price = (baseprice-(baseprice*5/100))*quantity;
      }
      else if(quantity&#38;gt;10 &#38;amp;&#38;amp; quantity &#38;lt;=20)
      {
       total_price = (baseprice-(baseprice*10/100))*quantity;
      }
      else if(quantity&#38;gt;20 &#38;amp;&#38;amp; quantity &#38;lt;=50)
      {
       total_price = (baseprice-(baseprice*15/100))*quantity;
      }
      else if(quantity&#38;gt;51 &#38;amp;&#38;amp; quantity &#38;lt;=100)
      {
       total_price = (baseprice-(baseprice*20/100))*quantity;
      }
      else if(quantity&#38;gt;=101)
      {
       total_price = (baseprice-(baseprice*25/100))*quantity;
      }
      return total_price;
   }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Can you please tell me how to use this with a hook and where to place the code.&#60;br /&#62;
Thanks.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
