<?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: Calculate Shipping based on Quantity</title>
		<link>https://legacy.forums.gravityhelp.com/topic/calculate-shipping-based-on-quantity</link>
		<description>Gravity Support Forums Topic: Calculate Shipping based on Quantity</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 19:58:46 +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/calculate-shipping-based-on-quantity" rel="self" type="application/rss+xml" />

		<item>
			<title>David Smith on "Calculate Shipping based on Quantity"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-shipping-based-on-quantity#post-33914</link>
			<pubDate>Tue, 30 Aug 2011 11:32:41 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">33914@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Katart,&#60;/p&#62;
&#60;p&#62;You will need to keep what you've done with the front end code. We do have some javascript hooks, but none that will accomplish what are you trying to do. The backend hooks provide support for what you've done on the front end to the the backend.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>katart on "Calculate Shipping based on Quantity"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-shipping-based-on-quantity#post-33911</link>
			<pubDate>Tue, 30 Aug 2011 11:22:56 +0000</pubDate>
			<dc:creator>katart</dc:creator>
			<guid isPermaLink="false">33911@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the response David. Using hooks is very new to me, but I am always up for a challenge. Does this mean I can eliminate my jQuery calculations and let the hooks to the work, or is it a bit of both?&#60;/p&#62;
&#60;p&#62;I'm not sure where to start, but I guess I should start reading about WP hooks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Calculate Shipping based on Quantity"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-shipping-based-on-quantity#post-33756</link>
			<pubDate>Mon, 29 Aug 2011 07:01:40 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">33756@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Katart,&#60;/p&#62;
&#60;p&#62;Most likely the issue is that although you are changing the shipping price on the front end, Gravity Forms does not know that the shipping price has been updated. You need to update this dynamically in the backend as well using the &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_product_info&#34; rel=&#34;nofollow&#34;&#62;gform_product_info&#60;/a&#62; hook. You will see that all of the $product_info is passed to this hook and can be modified as needed. This includes the shipping price.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>katart on "Calculate Shipping based on Quantity"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-shipping-based-on-quantity#post-33715</link>
			<pubDate>Sat, 27 Aug 2011 17:07:59 +0000</pubDate>
			<dc:creator>katart</dc:creator>
			<guid isPermaLink="false">33715@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here is the page: &#60;a href=&#34;http://www.bankstreettheater.com/beta/prices/gift-cards/&#34; rel=&#34;nofollow&#34;&#62;http://www.bankstreettheater.com/beta/prices/gift-cards/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Calculate Shipping based on Quantity"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-shipping-based-on-quantity#post-33689</link>
			<pubDate>Sat, 27 Aug 2011 13:27:50 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">33689@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you post a link to your page with the form in it?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>katart on "Calculate Shipping based on Quantity"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-shipping-based-on-quantity#post-33639</link>
			<pubDate>Fri, 26 Aug 2011 09:56:38 +0000</pubDate>
			<dc:creator>katart</dc:creator>
			<guid isPermaLink="false">33639@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Well, I have successfully added a USD symbol to the value of the hidden shipping input field, but I still am receiving a validation error for a Valid Value. I don't know why. Any ideas?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>katart on "Calculate Shipping based on Quantity"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-shipping-based-on-quantity#post-33632</link>
			<pubDate>Fri, 26 Aug 2011 09:08:07 +0000</pubDate>
			<dc:creator>katart</dc:creator>
			<guid isPermaLink="false">33632@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have noticed that this will not work unless I include a USD symbol within the value of the hidden shipping input field. I am receiving a validation error of an invalid value.&#60;/p&#62;
&#60;p&#62;Any ideas on how to fix this?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>katart on "Calculate Shipping based on Quantity"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-shipping-based-on-quantity#post-33596</link>
			<pubDate>Thu, 25 Aug 2011 19:35:42 +0000</pubDate>
			<dc:creator>katart</dc:creator>
			<guid isPermaLink="false">33596@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have been trying to figure out how to Calculate a Shipping cost based on Quantity and I think I have found a solution using jQuery. Here it is if anyone wants to use it or optimize it:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$(&#38;#39;.ginput_quantity&#38;#39;).keyup(function() {
		var sum = 0;
		$(&#38;#39;.ginput_quantity&#38;#39;).each(function() {
			sum += Number($(this).val() * .50);
		});

		$(&#38;#39;.gfield_shipping .gform_hidden&#38;#39;).attr(&#38;#39;value&#38;#39;,parseFloat(sum).toFixed(2));
	});&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I have a list of Products with the Quantity field attached (by default) and want to add a $.50 cent per Quantity shipping cost to the total order. This jQuery snippet adds the total Quantity value and multiplies it by .5 and then places that value in the hidden input of the Shipping field.&#60;/p&#62;
&#60;p&#62;Since I am a newbie at jQuery, I'm sure there is a better to do this and would love to hear about it.&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
