<?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: attempt to dynamically populate product price</title>
		<link>https://legacy.forums.gravityhelp.com/topic/attempt-to-dynamically-populate-product-price</link>
		<description>Gravity Support Forums Topic: attempt to dynamically populate product price</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 21:42:26 +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/attempt-to-dynamically-populate-product-price" rel="self" type="application/rss+xml" />

		<item>
			<title>Rob Harrell on "attempt to dynamically populate product price"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/attempt-to-dynamically-populate-product-price#post-54734</link>
			<pubDate>Tue, 10 Apr 2012 10:30:36 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">54734@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK I think I have a solution for you, hopefully this works in your situation based on my example I made here. I can email you the XML file for the form created as well, if you'd like.&#60;/p&#62;
&#60;p&#62;So we have this form here:&#60;br /&#62;
&#60;a href=&#34;http://grab.by/d1ci&#34; rel=&#34;nofollow&#34;&#62;http://grab.by/d1ci&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The Trip ID field is set to be admin only and to be populated dynamically (this is what will control our pricing). The three trip prices I have conditional logic on to only show when the matching trip id is passed.&#60;/p&#62;
&#60;p&#62;So you can see the result here, each of the three trips shows the appropriate price, so no one can change the price on you for that particular trip, unless they want more than 1 of course.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://dev.outerhavenstudios.com/trip-form/?trip_id=Trip%201&#34; rel=&#34;nofollow&#34;&#62;http://dev.outerhavenstudios.com/trip-form/?trip_id=Trip%201&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://dev.outerhavenstudios.com/trip-form/?trip_id=Trip%202&#34; rel=&#34;nofollow&#34;&#62;http://dev.outerhavenstudios.com/trip-form/?trip_id=Trip%202&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://dev.outerhavenstudios.com/trip-form/?trip_id=Trip%203&#34; rel=&#34;nofollow&#34;&#62;http://dev.outerhavenstudios.com/trip-form/?trip_id=Trip%203&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>greyhavns on "attempt to dynamically populate product price"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/attempt-to-dynamically-populate-product-price#post-54702</link>
			<pubDate>Mon, 09 Apr 2012 23:42:51 +0000</pubDate>
			<dc:creator>greyhavns</dc:creator>
			<guid isPermaLink="false">54702@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;&#60;a href=&#34;http://causemetotravel.com/wordpress/trip/tahiti-and-the-tuamotus-islands/&#34; rel=&#34;nofollow&#34;&#62;http://causemetotravel.com/wordpress/trip/tahiti-and-the-tuamotus-islands/&#60;/a&#62;&#60;br /&#62;
added my 'book trip' which is in the blue box. right now it's passing through query string, but i'd prefer through the hook.  is this possible?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>greyhavns on "attempt to dynamically populate product price"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/attempt-to-dynamically-populate-product-price#post-54615</link>
			<pubDate>Mon, 09 Apr 2012 11:20:25 +0000</pubDate>
			<dc:creator>greyhavns</dc:creator>
			<guid isPermaLink="false">54615@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;sorry.  i will try to get something up to demonstrate tonight. basically on &#60;a href=&#34;http://causemetotravel.com/wordpress/trip/cities-waterfalls-safari-in-luxurious-southern-africa/&#34; rel=&#34;nofollow&#34;&#62;this page&#60;/a&#62;, i want to have a button, 'book your trip'.  based upon the value of the trip rate, calculate 20% of that and pass that price dynamically to the form page where they can specify the quantity (number of travelers) and book through paypal. the Query string works, but i want the value hidden so users can't edit the value.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "attempt to dynamically populate product price"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/attempt-to-dynamically-populate-product-price#post-54608</link>
			<pubDate>Mon, 09 Apr 2012 10:58:52 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">54608@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you post a link to your page/form by chance?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>greyhavns on "attempt to dynamically populate product price"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/attempt-to-dynamically-populate-product-price#post-54513</link>
			<pubDate>Sat, 07 Apr 2012 01:55:12 +0000</pubDate>
			<dc:creator>greyhavns</dc:creator>
			<guid isPermaLink="false">54513@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;i'm trying to pass from my custom post type, the value of a trip to the form to collect a trip deposit. i'll eventually be calculating 20% of the trip rate, but it's not passing this data through.  guidance appreciated.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_field_value_trip_deposit&#38;#39;, &#38;#39;populate_post_trip_deposit&#38;#39;);
function populate_post_trip_deposit($value){
    global $post;

    $trip_rate_value = get_post_meta($post-&#38;gt;ID, &#38;#39;trip_rate&#38;#39;);
    return $trip_rate_value;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
