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.

Add Discount code in percentage

  1. Hello Every one,

    I have done Add Discount code functionality through GF condition's. in this for u can see how can i solve this
    http://www.gravityhelp.com/forums/topic/add-discount-code

    But now i want to add the negative price in (%) percentage..
    Exmaple:-

    if admin will enter $-15 amount then i want to less $15% from the total amount ..

    Can u please tell me how can we solve this problem ..

    Thank you for your support and help.

    Posted 11 years ago on Wednesday April 3, 2013 | Permalink
  2. There is no easy way to do this in Gravity Forms. There is a 3rd party coupon add-on: https://github.com/curtismchale/Coupons-for-Gravity-Forms

    Or, as I mentioned previously, we are working on our own coupon add-on. However, it's not available yet. What you are trying to do is not yet built in to Gravity Forms.

    Posted 11 years ago on Monday April 8, 2013 | Permalink
  3. Hello Chris Hajer,

    Thank-you for your valuable reply for me.Please have a look on this question.
    http://www.gravityhelp.com/forums/topic/discount-options-and-add-option-of-50-to-total-price

    David Peralty provide some solutions for discount. As same i want in my website. So please let me know about this . can we manage some-thing. As u know what i want.

    i have number's of products in my website,with different-different Price's.And i want common Discount option from the total price. Please give me some solutions which i can do with gravity form If it is possible ..

    Thank you for your support and help.

    Posted 11 years ago on Thursday April 11, 2013 | Permalink
  4. This seems like it would be fairly straightforward by using the TOTAL field and then multiplying it by a percentage. Can someone offer a suggestion on how to do this with a custom function?

    Thanks!

    Posted 11 years ago on Thursday April 11, 2013 | Permalink
  5. David Peralty

    The total field isn't something you can grab and manipulate. What you need to do is grab all of your fields in a Product Calculation field and add and multiply them together as you normally would (quantity x price) + (quantity x price) and then multiply it by a percentage and then make that a negative number. Then you have your percentage discount translated into a real negative cost which will be subtracted from the total.

    Posted 11 years ago on Thursday April 11, 2013 | Permalink
  6. Thanks David. Is this something which would be done in the functions.php file or could it be done directly in the GF admin area?

    Anything else you can provide to point us in the right direction would be great and I'll be happy to post our code solution up here when it's complete.

    Thanks!

    Posted 11 years ago on Thursday April 11, 2013 | Permalink
  7. David Peralty

    It is done in the GF form builder. Add a product field, and change it to calculation. From there, just create a math equation that calculates all of your products and quantities and multiply it by the rate at which you want to discount (if you want someone to pay 20%, then you'll multiply the total by 0.8 and then make it a negative).

    Posted 11 years ago on Thursday April 11, 2013 | Permalink
  8. bluantinoo
    Member

    Hello folks,
    I just want to share a nice solution for a percentage discount with promo codes.

    Just use this snippet by GravityWiz: http://gravitywiz.com/subtotal-merge-tag-for-calculations/

    I've explained in details how to do it in this comment: http://gravitywiz.com/subtotal-merge-tag-for-calculations/#comment-58378

    Quite easy actually :)

    Posted 11 years ago on Friday May 31, 2013 | Permalink
  9. David Peralty

    Thanks for posting that. I'm sure it will help many people.

    Posted 11 years ago on Friday May 31, 2013 | Permalink
  10. bluantinoo
    Member

    I hope David,
    I've searched long time for this solution, and now it's really easy to implement. Many thanks for releasing the "Calculation" option, and also thanks to David from Gravity Wiz for his {subtotal} snippet!

    Posted 11 years ago on Friday May 31, 2013 | Permalink