<?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: Another PayPal discount code request</title>
		<link>https://legacy.forums.gravityhelp.com/topic/another-paypal-discount-code-request</link>
		<description>Gravity Support Forums Topic: Another PayPal discount code request</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 13:26:31 +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/another-paypal-discount-code-request" rel="self" type="application/rss+xml" />

		<item>
			<title>wwillard on "Another PayPal discount code request"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/another-paypal-discount-code-request#post-36962</link>
			<pubDate>Mon, 03 Oct 2011 22:37:39 +0000</pubDate>
			<dc:creator>wwillard</dc:creator>
			<guid isPermaLink="false">36962@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ditto &#34;theepiphany&#34;... is a coupon function coming?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>theepiphany on "Another PayPal discount code request"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/another-paypal-discount-code-request#post-36181</link>
			<pubDate>Sun, 25 Sep 2011 14:58:20 +0000</pubDate>
			<dc:creator>theepiphany</dc:creator>
			<guid isPermaLink="false">36181@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Are there any plans to add a coupon function to the paypal plugin/gravity forms?&#60;/p&#62;
&#60;p&#62;Have an entire form built for a client - and they requested this at the last minute. Not a threat - as I've already purchased the Dev license and love the product- but may have to switch to something else because of it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Another PayPal discount code request"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/another-paypal-discount-code-request#post-35711</link>
			<pubDate>Mon, 19 Sep 2011 23:25:46 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">35711@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here is a tutorial written by David Smith on how to add tax to an order form.  You could do the reverse to apply discounts.  It is a customization, as Carl explained, but it can be done.&#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>Carl Hancock on "Another PayPal discount code request"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/another-paypal-discount-code-request#post-35663</link>
			<pubDate>Mon, 19 Sep 2011 15:28:28 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">35663@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Gravity Forms does not use PayPal payment buttons so any PayPal related payment button hacks involving adding fields to the form are not going to work.  The PayPal integration happens via an API and not via a form posted to PayPal.&#60;/p&#62;
&#60;p&#62;In order to integrate some sort of discount code yourself you would have to do it as a customization to Gravity Forms and not PayPal.  So you would have to write custom code and interact with Gravity Forms to validate and apply the discount to the order.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Gotequity on "Another PayPal discount code request"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/another-paypal-discount-code-request#post-35525</link>
			<pubDate>Fri, 16 Sep 2011 18:34:22 +0000</pubDate>
			<dc:creator>Gotequity</dc:creator>
			<guid isPermaLink="false">35525@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Team Gravity,&#60;/p&#62;
&#60;p&#62;I'm hoping to get some help on how to implement a percentage discount code hack using a javascript option that I found on PayPal's development site. While this is designed to use hidden os0 and os1 values passed through a custom payment button, I've got to think there would be a way to mimic the behavior, just not sure how to implement it.&#60;/p&#62;
&#60;p&#62;Here's the script:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script language=&#38;quot;JavaScript&#38;quot; &#38;gt;
var coup1=&#38;quot;mydiscount&#38;quot;;
var coup2=&#38;quot;GOLD15&#38;quot;;//you can use this for other discount codes
var coup3=&#38;quot;GOLD20&#38;quot;; 

function CalculateOrder(form) {

if (form.text1.value == coup1)
{
form.discount_rate.value = &#38;quot;20&#38;quot;;
form.discount_rate2.value = &#38;quot;20&#38;quot;;
form.os1.value = &#38;quot;Discount 20%&#38;quot;;
}

//determine the amount based on selection
if (form.text1.value == coup2)
{
form.discount_rate.value = &#38;quot;15&#38;quot;;
form.discount_rate2.value = &#38;quot;15&#38;quot;;
form.os1.value = &#38;quot;Discount 20%&#38;quot;;
}
if (form.text1.value == coup3)
{
form.discount_rate.value = &#38;quot;20&#38;quot;;
form.discount_rate2.value = &#38;quot;20&#38;quot;;
form.os1.value = &#38;quot;Discount 20%&#38;quot;;
}

//determine amount and name of product
if (form.baseoption.value == &#38;quot;23&#38;quot;)
{
form.os0.value =&#38;quot;23 Day Diet (2 bottles)&#38;quot;;
form.amount.value = 155;
}
if (form.baseoption.value == &#38;quot;40&#38;quot;)
{
form.os0.value =&#38;quot;40 Day Diet (3 bottles)&#38;quot;;
form.amount.value = 225;
}
if (form.baseoption.value == &#38;quot;1&#38;quot;)
{
form.os0.value =&#38;quot;Single Bottle&#38;quot;;
form.amount.value = 80;
}
if (selIndex == 1)
{
form.amount.value = Dollar (option1);
}

}
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and the corresponding buy now button code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;form action=&#38;quot;https://www.paypal.com/cgi-bin/webscr&#38;quot; method=&#38;quot;post&#38;quot;&#38;gt;
&#38;lt;input type=&#38;quot;hidden&#38;quot; name=&#38;quot;cmd&#38;quot; value=&#38;quot;_xclick&#38;quot;&#38;gt;
&#38;lt;input type=&#38;quot;hidden&#38;quot; name=&#38;quot;business&#38;quot; value=&#38;quot;xxxxxxxxxxxxxxxxxxxxxxxxxx&#38;quot;&#38;gt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;&#38;lt;business email addr or id
&#38;lt;input type=&#38;quot;hidden&#38;quot; name=&#38;quot;discount_rate&#38;quot;&#38;gt;
&#38;lt;input type=&#38;quot;hidden&#38;quot; name=&#38;quot;discount_rate2&#38;quot;&#38;gt;
&#38;lt;input type=&#38;quot;hidden&#38;quot; name=&#38;quot;item_name&#38;quot; value=&#38;quot;--need name of item--&#38;quot;&#38;gt;
&#38;lt;table&#38;gt;
&#38;lt;tr&#38;gt;&#38;lt;td&#38;gt;&#38;lt;input type=&#38;quot;hidden&#38;quot; name=&#38;quot;on0&#38;quot; value=&#38;quot;SkinnyUp! HCG Drops&#38;quot;&#38;gt;SkinnyUp! HCG Drops&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;
&#38;lt;tr&#38;gt;&#38;lt;td&#38;gt;
&#38;lt;input type=&#38;quot;hidden&#38;quot; name=&#38;quot;os0&#38;quot;&#38;gt;
&#38;lt;select name=&#38;quot;baseoption&#38;quot;&#38;gt;
&#38;lt;option value=&#38;quot;23&#38;quot;&#38;gt;23 Day Diet (2 bottles) $155.00&#38;lt;/option&#38;gt;
&#38;lt;option value=&#38;quot;40&#38;quot;&#38;gt;40 Day Diet (3 bottles) $225.00&#38;lt;/option&#38;gt;
&#38;lt;option value=&#38;quot;1&#38;quot;&#38;gt;Single Bottle $80.00&#38;lt;/option&#38;gt;
&#38;lt;/select&#38;gt; &#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;
&#38;lt;tr&#38;gt;&#38;lt;td&#38;gt;&#38;lt;input type=&#38;quot;hidden&#38;quot; name=&#38;quot;on1&#38;quot; value=&#38;quot;Coupon Code&#38;quot;&#38;gt;Coupon Code&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;
&#38;lt;tr&#38;gt;&#38;lt;td&#38;gt;&#38;lt;input type=&#38;quot;text&#38;quot; name=&#38;quot;text1&#38;quot; maxlength=&#38;quot;60&#38;quot;&#38;gt;&#38;lt;input type=&#38;quot;hidden&#38;quot; name=&#38;quot;os1&#38;quot;&#38;gt;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;
&#38;lt;/table&#38;gt;
&#38;lt;input type=&#38;quot;hidden&#38;quot; name=&#38;quot;amount&#38;quot; value=&#38;quot;1.00&#38;quot;&#38;gt;
&#38;lt;input type=&#38;quot;hidden&#38;quot; name=&#38;quot;currency_code&#38;quot; value=&#38;quot;USD&#38;quot;&#38;gt;
&#38;lt;input type=&#38;quot;image&#38;quot; src=&#38;quot;https://www.paypalobjects.com/WEBSCR-640-20110306-1/en_US/i/btn/btn_buynowCC_LG.gif&#38;quot; border=&#38;quot;0&#38;quot; name=&#38;quot;submit&#38;quot; onclick=&#38;quot;CalculateOrder(this.form)&#38;quot; alt=&#38;quot;PayPal - The safer, easier way to pay online!&#38;quot;&#38;gt;
&#38;lt;img alt=&#38;quot;&#38;quot; border=&#38;quot;0&#38;quot; src=&#38;quot;https://www.paypalobjects.com/WEBSCR-640-20110306-1/en_US/i/scr/pixel.gif&#38;quot; width=&#38;quot;1&#38;quot; height=&#38;quot;1&#38;quot;&#38;gt;
&#38;lt;/form&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;BTW - I've spent the better part of today looking through the forum and the gf hooks suggested by Carl to accomplish this, but without guidance on where to insert new or modify exisitng code, I'm really at a loss.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
