<?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: Change PayPal Description?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/change-paypal-description</link>
		<description>Gravity Support Forums Topic: Change PayPal Description?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 02:54:55 +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/change-paypal-description" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Change PayPal Description?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/change-paypal-description#post-88585</link>
			<pubDate>Wed, 07 Nov 2012 22:51:42 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">88585@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sounds like this gform_field_value_price is working for you now and you will have the distance available.  I would probably store that in the entry so you have it available later.  To change the information being sent to PayPal you can use the gform_paypal_query filter: &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_paypal_query&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_paypal_query&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I don't think you will be able to incorporate the two functions.  You can leave what you have working here alone, and add the gform_paypal_query to add to the information being sent to PayPal.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>KindraPB on "Change PayPal Description?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/change-paypal-description#post-87566</link>
			<pubDate>Mon, 05 Nov 2012 11:19:39 +0000</pubDate>
			<dc:creator>KindraPB</dc:creator>
			<guid isPermaLink="false">87566@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am currently getting a distance for the user that is posting a housing listing and depending on how far away they are from a certain point the price changes. So in the paypal details I would like to include the distance. I am using:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_field_value_price&#38;quot;, &#38;quot;populate_price&#38;quot;);
function populate_price($value){

	$id = get_current_user_id();
	$args=array(
 	 &#38;#39;author&#38;#39; =&#38;gt; $id,
 	 &#38;#39;post_type&#38;#39; =&#38;gt; &#38;#39;listing&#38;#39;,
 	 &#38;#39;post_status&#38;#39; =&#38;gt; &#38;#39;pending&#38;#39;,
 	 &#38;#39;numberposts&#38;#39; =&#38;gt; 1
);
$my_posts = get_posts($args);
if( $my_posts ) {

$post_id =$my_posts[0]-&#38;gt;ID;
}

	$distance = get_post_meta($post_id, &#38;#39;distance&#38;#39;, $single);

	if($distance[0]&#38;gt;10)
	{
		$price = &#38;quot;$50.00&#38;quot;;
	}
	else
	{
		$price = &#38;quot;$35.00&#38;quot;;
	}	

   return $price;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Change PayPal Description?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/change-paypal-description#post-87208</link>
			<pubDate>Sun, 04 Nov 2012 09:00:18 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">87208@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The gform_product filter just changes the name &#34;Product&#34; to whatever you want, an the entry detail page.  Documentation: &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_product&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_product&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;What code are you using currently to change the price?  Maybe we can incorporate the two functions.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>KindraPB on "Change PayPal Description?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/change-paypal-description#post-86648</link>
			<pubDate>Fri, 02 Nov 2012 11:05:35 +0000</pubDate>
			<dc:creator>KindraPB</dc:creator>
			<guid isPermaLink="false">86648@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I want to add a function that changes the Description (field label) sent in the PayPal post. I have a function that changes the price value depending on the type of post the user is paying for. So I would like the type of post to be sent in the description. Would I use:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
add_filter(&#38;quot;gform_product&#38;quot;, &#38;quot;change_product&#38;quot;, 10, 2);
function change_product($label, $form_id){
//find users post id
//use id to find post type
$post_type = //post_type;
    return $post_type;
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
