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 an Additional Percentage % to the Total

  1. hypergolica
    Member

    Hi, I need to add a surcharge percentage to the Total amount. So if the total were $100, then I need to be able to automatically add 2.75% and have it be $102.75

    Does this link here explain the easiest way to do this:
    http://www.gravityhelp.com/documentation/page/Gravity_Forms_Pricing:_Adding_Tax

    Or is there an easier way?

    Please advise. Thank you.

    Posted 12 years ago on Monday February 6, 2012 | Permalink
  2. hypergolica
    Member

    Ah, is this the current solution?

    http://www.gravityhelp.com/forums/topic/add-surcharge-to-the-total-on-form

    Posted 12 years ago on Monday February 6, 2012 | Permalink
  3. hypergolica
    Member

    Hmmmm, not having any luck. I've also tried Carl's solution listed here:
    http://www.gravityhelp.com/forums/topic/adding-tax-percentage-to-total

    But it looks to me like the code mentioned here is erroneous:
    http://pastie.org/2102201

    When I add that to my functions.php file, I get an error. Is it because the ?> for the second PHP code line is missing?

    Please help.

    Posted 12 years ago on Monday February 6, 2012 | Permalink
  4. hypergolica
    Member

    Okay, here is the solution I followed that worked:
    http://www.gravityhelp.com/forums/topic/adding-paypal-transaction-fee

    Also, it's worth noting that when adding Carl's code in the function.php file that it should come before the closing php tag at the end of the file.

    Posted 12 years ago on Monday February 6, 2012 | Permalink
  5. Thanks for sharing this, I'm working on a similar project.

    It would be great to see percentage and other math functions incorporated into the form admin interface!

    Posted 12 years ago on Monday February 6, 2012 | Permalink