<?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: Deduct delivery fee before adding Sales tax</title>
		<link>https://legacy.forums.gravityhelp.com/topic/deduct-delivery-fee-before-adding-sales-tax</link>
		<description>Gravity Support Forums Topic: Deduct delivery fee before adding Sales tax</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 08:29:34 +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/deduct-delivery-fee-before-adding-sales-tax" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Deduct delivery fee before adding Sales tax"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deduct-delivery-fee-before-adding-sales-tax#post-38429</link>
			<pubDate>Thu, 20 Oct 2011 10:25:44 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">38429@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@Pandonym, please start a new topic for your issue.  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Pandonym on "Deduct delivery fee before adding Sales tax"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deduct-delivery-fee-before-adding-sales-tax#post-38415</link>
			<pubDate>Thu, 20 Oct 2011 09:20:39 +0000</pubDate>
			<dc:creator>Pandonym</dc:creator>
			<guid isPermaLink="false">38415@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I reword it. I want to add a discount or tax just to a price-option if a special product is chosen.&#60;/p&#62;
&#60;p&#62;How can I achieve that?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Pandonym on "Deduct delivery fee before adding Sales tax"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deduct-delivery-fee-before-adding-sales-tax#post-38214</link>
			<pubDate>Tue, 18 Oct 2011 14:16:04 +0000</pubDate>
			<dc:creator>Pandonym</dc:creator>
			<guid isPermaLink="false">38214@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I have a similar issue. I want to give a discount on some products if a special product (or option) is selected. The discount should only apply to the other options (or products) and not for the rest.&#60;/p&#62;
&#60;p&#62;I think this code here is the right one, but I don't understand it :-)&#60;/p&#62;
&#60;p&#62;Can you please help me?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>remingtonmulch on "Deduct delivery fee before adding Sales tax"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deduct-delivery-fee-before-adding-sales-tax#post-34583</link>
			<pubDate>Tue, 06 Sep 2011 14:38:19 +0000</pubDate>
			<dc:creator>remingtonmulch</dc:creator>
			<guid isPermaLink="false">34583@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;David,&#60;/p&#62;
&#60;p&#62;I figured this out.  Thanks again for all your help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>remingtonmulch on "Deduct delivery fee before adding Sales tax"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deduct-delivery-fee-before-adding-sales-tax#post-33265</link>
			<pubDate>Mon, 22 Aug 2011 19:33:36 +0000</pubDate>
			<dc:creator>remingtonmulch</dc:creator>
			<guid isPermaLink="false">33265@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;HI David,&#60;/p&#62;
&#60;p&#62;Okay so I changed the code in the gform_product_info_57 hook by adding the line that refers to the delivery fee.  I'm trying to subtract it from the total that it returns.&#60;/p&#62;
&#60;p&#62;    $total += floatval($products[&#34;shipping&#34;][&#34;price&#34;]);&#60;br /&#62;
    $total -= floatval($products[&#34;Delivery Fee by Zip Code&#34;][&#34;price&#34;]);&#60;br /&#62;
    return $total;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;But it's not working.  Am I referring to the delivery fee element of the $product_info array correctly?&#60;/p&#62;
&#60;p&#62;Thanks for your help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Deduct delivery fee before adding Sales tax"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deduct-delivery-fee-before-adding-sales-tax#post-32957</link>
			<pubDate>Thu, 18 Aug 2011 17:23:31 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">32957@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Reminginton,&#60;/p&#62;
&#60;p&#62;You would need to apply the same concept used to subtract the delivery fee from in the javascript to the code run in the gform_product_info_57 hook. The delivery fee should be part of the $product_info array.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>remingtonmulch on "Deduct delivery fee before adding Sales tax"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deduct-delivery-fee-before-adding-sales-tax#post-32954</link>
			<pubDate>Thu, 18 Aug 2011 17:11:52 +0000</pubDate>
			<dc:creator>remingtonmulch</dc:creator>
			<guid isPermaLink="false">32954@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So sorry, I spoke too soon!!  I placed an order with the order total of $81.50.  The Order Total is correct on this page:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://remingtontopsoil.com/order-online&#34; rel=&#34;nofollow&#34;&#62;http://remingtontopsoil.com/order-online&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;One item $30.00 + 5% sales tax = $31.50 + $50 delivery (Total $81.50)&#60;/p&#62;
&#60;p&#62;However, when I look in the WP admin panel and review the entries, the order shows sales tax = $4.00 and order total of $84.00.&#60;/p&#62;
&#60;p&#62;So the sales tax is correctly only on the products on the order form.  However the entries and the email I receive, still have tax charged on items and delivery fee.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>remingtonmulch on "Deduct delivery fee before adding Sales tax"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deduct-delivery-fee-before-adding-sales-tax#post-32940</link>
			<pubDate>Thu, 18 Aug 2011 16:03:36 +0000</pubDate>
			<dc:creator>remingtonmulch</dc:creator>
			<guid isPermaLink="false">32940@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;AWESOME...that did it!!!&#60;/p&#62;
&#60;p&#62;Thank you very much.  Great support with quick turn-around.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Deduct delivery fee before adding Sales tax"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deduct-delivery-fee-before-adding-sales-tax#post-32895</link>
			<pubDate>Thu, 18 Aug 2011 11:55:26 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">32895@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Oops. Try this:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/2391965&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/2391965&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>remingtonmulch on "Deduct delivery fee before adding Sales tax"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deduct-delivery-fee-before-adding-sales-tax#post-32888</link>
			<pubDate>Thu, 18 Aug 2011 10:51:36 +0000</pubDate>
			<dc:creator>remingtonmulch</dc:creator>
			<guid isPermaLink="false">32888@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;David,&#60;/p&#62;
&#60;p&#62;Okay added this code, no JS error.  Testing it on this page:&#60;br /&#62;
&#60;a href=&#34;http://remingtontopsoil.com/order-online&#34; rel=&#34;nofollow&#34;&#62;http://remingtontopsoil.com/order-online&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I select a product and enter a quantity, the Order Total reflects the correct amount including the sales tax.  But when I go to the bottom, and select the delivery fee from the drop-down, it's not added to the Order Total.&#60;/p&#62;
&#60;p&#62;Here is my code:&#60;/p&#62;
&#60;p&#62;var deliveryFee = jQuery('#input_2_20').val().split('&#124;')[1];&#60;br /&#62;
            total -= deliveryFee;&#60;/p&#62;
&#60;p&#62;            return total + (total * 0.05);&#60;br /&#62;
        }
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
