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.

howto round price in gravity forms in formular

  1. I created a product field and put a formular into it. All works fine but how do I get a math round price from it? Is there anywere a doc for possible entries in a formular field?

    My formular looks like this:

    ((1.15*{medium:7} * ({breite:4}+8) * ({hoehe:5}+8) / 10000 ) + (({breite:4}+{hoehe:5})/50*{rahmen:14})+8)*1.19*{Kopien:16}

    Posted 11 years ago on Monday November 19, 2012 | Permalink
  2. You cannot use the rounding function in the calculation, but there is a rounding option beneath the formula box. Screenshot http://rgsharedweb.s3.amazonaws.com/images/calculation-formula-builder.png

    Does that work for you?

    Posted 11 years ago on Tuesday November 20, 2012 | Permalink
  3. Hello Chris, I saw that option in a number field. But in my case I get values like 24.02 after calculation which is not a nice price for a product. My whish is, a kind of rounding on tens after the decimal point e.a. 24.02 will be 24.00 and 25.77 will be 25.80. Any idea?

    Beside: I had for this type of calculation a small javascript file, but I am as a novice was not able to combine my javascript with a gravity form.

    Posted 11 years ago on Tuesday November 20, 2012 | Permalink
  4. Hello Chris, I am just before I will give me a shot.

    I did a simple calculation of a price value + shipping. The prices in my case are formatted with comma -> 20,00 €. If I add to it the shipping value of 7,90 €, the new value is 99,00 €?!
    I did then a division of 10 only to the shipping cost. Now the total is correct = 20,00 + 7,90 = 27,90. I placed that field as shortcode in a e-mail form, the value is there 20,79 €?! Whats going on there?

    I found for that a workaround, as I used two number fields, hidden to the public, and placed them as shortcode in my e-mail form. The setup for the number fields are show comma separated numbers and round to two digits after comma. Placed in e-mail form, they show up but first with point separated and second ignoring the setting of two digits after comma?!

    I give up.

    Posted 11 years ago on Tuesday November 20, 2012 | Permalink
  5. Hi Chris,
    For some reason, my GF doesn't give me a rounding option in the Product Price field. Any suggestions?

    http://prntscr.com/k5y6d

    IS

    Posted 11 years ago on Tuesday November 20, 2012 | Permalink
  6. Looks as though a "number" field will round. But, a product set to "calculate" will not round the total price. Is there another way to achieve a rounded product price?

    Posted 11 years ago on Tuesday November 20, 2012 | Permalink