<?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: Dynamically Populate Price in Product Field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populate-price-in-product-field</link>
		<description>Gravity Support Forums Topic: Dynamically Populate Price in Product Field</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 06:43:00 +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/dynamically-populate-price-in-product-field" rel="self" type="application/rss+xml" />

		<item>
			<title>MangoMM on "Dynamically Populate Price in Product Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populate-price-in-product-field#post-72728</link>
			<pubDate>Mon, 27 Aug 2012 07:52:45 +0000</pubDate>
			<dc:creator>MangoMM</dc:creator>
			<guid isPermaLink="false">72728@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris,&#60;/p&#62;
&#60;p&#62;Any luck?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Dynamically Populate Price in Product Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populate-price-in-product-field#post-71584</link>
			<pubDate>Sat, 18 Aug 2012 22:05:12 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">71584@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The 10, 2 is priority (10) and number of arguments accepted (2).  See here: &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/add_filter&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/add_filter&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I will check with the developers on changing just some of the labels in a single form.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>MangoMM on "Dynamically Populate Price in Product Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populate-price-in-product-field#post-71557</link>
			<pubDate>Sat, 18 Aug 2012 11:25:37 +0000</pubDate>
			<dc:creator>MangoMM</dc:creator>
			<guid isPermaLink="false">71557@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That's exactly what I wanted! Thank you.&#60;/p&#62;
&#60;p&#62;Before you close this thread, could you kindly explain what &#34;, 10, 2&#34; means in&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_filter(&#38;quot;gform_product_quantity_9&#38;quot;, &#38;quot;set_quantity_label&#38;quot;, 10, 2);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;also, and sorry to be a pain, but if some items are being sold by weight, and some items are being sold by qty, (hence the reason why I want to rename the labels), how do I change the labels for specific pricing fields?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Change quantity sublabel to Weight
add_filter(&#38;quot;gform_product_quantity_9&#38;quot;, &#38;quot;set_quantity_label&#38;quot;, 10, 2);
function set_quantity_label($sublabel, $form_id){
    return &#38;quot;Weight&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The above changes label for ALL quantity fields but not specific ones. I have tried&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[php]
gform_product_quantity_9_2&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to amend the item with field id 2 to no avail.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Dynamically Populate Price in Product Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populate-price-in-product-field#post-71549</link>
			<pubDate>Sat, 18 Aug 2012 09:12:32 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">71549@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;To change the price, you can check the &#34;Allow field to be populated dynamically&#34; box on the advanced tab for your product. The screen will look like this at that point: &#60;a href=&#34;http://minus.com/lY5WUTPLBsp8A&#34; rel=&#34;nofollow&#34;&#62;http://minus.com/lY5WUTPLBsp8A&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Set those three parameters.  Then use one of these three methods to dynamically populate the field.  &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;For pulling the information from the database or external XML feed, you probably want to use the last example, explaining how to do it with a hook.  &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population#Hooks&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population#Hooks&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;For changing Price and Quantity labels, you can use these filters:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_product_price&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_product_price&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_product_quantity&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_product_quantity&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>MangoMM on "Dynamically Populate Price in Product Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populate-price-in-product-field#post-71532</link>
			<pubDate>Sat, 18 Aug 2012 05:31:38 +0000</pubDate>
			<dc:creator>MangoMM</dc:creator>
			<guid isPermaLink="false">71532@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Background:&#60;br /&#62;
I am building a quote engine on my website. I am trying to use GF to quote my customers. Product Prices are stored in a database and are updated automatically based on an external XML feed.&#60;/p&#62;
&#60;p&#62;My question is two fold:&#60;br /&#62;
1. I wish to use Product Fields (single product), but somehow dynamically populate the &#34;Base Price&#34;&#60;br /&#62;
2. I wish to rename the &#34;Price:&#34; and &#34;Quantity:&#34; labels in the Product Field.&#60;/p&#62;
&#60;p&#62;Is this possible? If so, how?&#60;/p&#62;
&#60;p&#62;Many thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
