PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Adding Tax

  1. Greetings,
    I want to show the tax calculated for a form.
    I don't see how to make a calculation using the Total field.
    There are only merge tags for all of my products.
    How do I create the calculation: $total * .7 ?
    Thx.

    Posted 11 years ago on Thursday April 11, 2013 | Permalink
  2. Maybe this question is so easy that it's not getting any response?
    Here's what I have in my Calculation:
    {Total:67} * .07

    Unfortunately, when I go to page two where it shows the summary of my full order – using this function: http://goo.gl/XTWbh – the tax value isn't being calculated. It just shows $0.00.

    Any suggestions? Please?

    Posted 11 years ago on Sunday April 14, 2013 | Permalink
  3. David Peralty

    Hi there, you can't use the Total field as a merge tag to calculate against. You need to use the merge tags of all of your product fields and whatnot and then multiply it by your tax rate. So you'll want something like ({product1} * {product1:qty}) + ({product2} * {product2:qty}) * 0.07

    Posted 11 years ago on Monday April 15, 2013 | Permalink
  4. I've got 125 products.
    Please, tell me there is some other way.
    Pleeeeease.

    Posted 11 years ago on Wednesday April 17, 2013 | Permalink
  5. The Total Field cannot be used in calculations. Because the Total would be impacted by the results of that calculation and used in the calculation itself... you'd get into an infinite loop situation. So it isn't something that is supported.

    David is correct. The only way to do this is to use a Product Field configured as a Calculation and to configure a formula that both calculates a total and multiplies it by the tax percentage.

    Gravity Forms Pricing Fields are designed for basic order forms. It does not have built in functionality for more complex ecommerce operations. It does not currently have any Tax functionality as it's primarily designed for situations where taxes are incorporated into the cost of what is being sold. Which is common when purchasing tickets to events, purchasing digital downloads, etc.

    We get asked frequently how we could possibly leave Taxes out but what people don't realize is Taxes are much more complex than they sound. As our product is used by people all over the world any Tax functionality we would implement would need to take this into account. Which means supporting a wide variety of tax scenarios as well as multiple taxes. State, city, county, vat, etc. It's much more complex than it sounds and it's outside the scope of what Gravity Forms does.

    With that many products involved a shopping cart style solution may have been the more appropriate route to take. That's a lot of products to incorporate on a single form.

    Posted 11 years ago on Wednesday April 17, 2013 | Permalink
  6. Hi Johnny, given that you have 125 products, you *may* run into some performance issues with this snippet, but it's worth a shot:

    http://gravitywiz.com/subtotal-merge-tag-for-calculations/

    Posted 11 years ago on Thursday April 18, 2013 | Permalink