<?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: Example Form in XML that calculates total!</title>
		<link>https://legacy.forums.gravityhelp.com/topic/example-form-in-xml-that-calculates-total</link>
		<description>Gravity Support Forums Topic: Example Form in XML that calculates total!</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Apr 2026 07:33:49 +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/example-form-in-xml-that-calculates-total" rel="self" type="application/rss+xml" />

		<item>
			<title>Gaslight on "Example Form in XML that calculates total!"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/example-form-in-xml-that-calculates-total#post-41006</link>
			<pubDate>Mon, 14 Nov 2011 09:51:22 +0000</pubDate>
			<dc:creator>Gaslight</dc:creator>
			<guid isPermaLink="false">41006@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Carl,&#60;/p&#62;
&#60;p&#62;I'm not sure if this can be done or not:&#60;/p&#62;
&#60;p&#62;is there any way to get a variable consisting of the total price of an individual product + its related options, NOT the total price given by all products and their options altogether?&#60;/p&#62;
&#60;p&#62;for example&#60;/p&#62;
&#60;p&#62;product A has base cost of 10 USD&#60;br /&#62;
there are 2 options +2 USD and +5 USD&#60;/p&#62;
&#60;p&#62;product B has base cost of 15 USD&#60;br /&#62;
there are 2 options -3 USD and +2 USD&#60;/p&#62;
&#60;p&#62;suppose user selects product A and add option +2 USD, then selects product B without selecting options &#60;/p&#62;
&#60;p&#62;total price of product A is 12 USD (base 10 + 2 USD options)&#60;br /&#62;
total price of product B is 15 USD (no options)&#60;/p&#62;
&#60;p&#62;total cost of all products is 27 USD&#60;/p&#62;
&#60;p&#62;can I extract dynamically all these values (individual totals and grand total)?&#60;/p&#62;
&#60;p&#62;thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Example Form in XML that calculates total!"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/example-form-in-xml-that-calculates-total#post-37741</link>
			<pubDate>Wed, 12 Oct 2011 17:51:53 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">37741@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I just realized you created 2 requests for the same issue.  In the future please do not open up multiple requests for the same question.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Example Form in XML that calculates total!"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/example-form-in-xml-that-calculates-total#post-37738</link>
			<pubDate>Wed, 12 Oct 2011 17:50:30 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">37738@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sure.  I've created you a quick sample order form that has a Product, 3 Options and a Fixed Shipping Cost along with a Total field.  It took me 5 minutes to throw together.  You can download it here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://dl.dropbox.com/u/185347/example-order-form-2.xml&#34; rel=&#34;nofollow&#34;&#62;http://dl.dropbox.com/u/185347/example-order-form-2.xml&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You can see a screenshot of what the form looks like here: &#60;a href=&#34;http://i.imgur.com/M8Cn6.png&#34; rel=&#34;nofollow&#34;&#62;http://i.imgur.com/M8Cn6.png&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Download and import the XML file by going to Import/Export under Forms and then selecting Import Forms.  It will create a form called &#34;Gravity Forms T-Shirt Order Form 2&#34;.&#60;/p&#62;
&#60;p&#62;Here is what it consists of:&#60;/p&#62;
&#60;p&#62;The &#34;Name&#34; and &#34;Email&#34; fields are self explanatory.  No options were selected I simply added them to the form.&#60;/p&#62;
&#60;p&#62;The &#34;Gravity Forms T-Shirt&#34; field is a Product Field set to field type Single Product with Quantity disabled and a price of $19.99.&#60;/p&#62;
&#60;p&#62;The &#34;Quantity&#34; field is a Quantity field set to a field type of user input and a default value set to 1.&#60;/p&#62;
&#60;p&#62;The &#34;Select A Design&#34; field is an Option field set to a field type of drop down with 3 choices added each with a price of $0.00 which means they don't impact the price.  To impact the price you would do like +$5.00 to add $5 or -$5.00 to make it $5 cheaper.&#60;/p&#62;
&#60;p&#62;The &#34;Select A Size&#34; field is an Option field set to a field type of drop down with 4 choices added.  3 of the choies have a price of $0.00 so they don't impact the price and the 4th choice has a price of +$5.00 so it increases the price by $5.&#60;/p&#62;
&#60;p&#62;The &#34;Select A Color&#34; field is an Option field set to a field type of drop down with 4 choices added.  3 of the choices have a price of $0.00 so they don't impact the price and the 4th choice has a price of +$10.00 so it increases the price by $10.&#60;/p&#62;
&#60;p&#62;All 3 Option Fields are automatically tied to the &#34;Gravity Forms T-Shirt&#34; field by virtue of it being the only Product field on the form.  If you had multiple Product fields then you would select which Product field the Option field is associated with when editing that Option field.  Option fields require a Product.  You can't have a Size without a T-Shirt.&#60;/p&#62;
&#60;p&#62;The &#34;Shipping&#34; field is a Shipping field set to a field type of Single Method and a price set to $9.99.&#60;/p&#62;
&#60;p&#62;The &#34;Total&#34; field is simply a Total field with no additional options configured.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dickitt on "Example Form in XML that calculates total!"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/example-form-in-xml-that-calculates-total#post-37709</link>
			<pubDate>Wed, 12 Oct 2011 11:47:14 +0000</pubDate>
			<dc:creator>dickitt</dc:creator>
			<guid isPermaLink="false">37709@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello, if anyone could help me by uploading an example of a gravity form that calculates the total and displays it at the end of the forum by adding a product that has 3 options in it and a fixed shipping cost. i cannot realize this, please!!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
