Is it possible to round off the total amount with no decimal places?

  • Profile Image
    lovingnaturecoffee
    Asked on May 12, 2021 at 10:02 AM

    After applying coupon, there's decimal places even though I turn off decimal in the setting. Is it possible to round off the total amount with no decimal places? Thanks!



    This is a re-post of a comment on How to Add Coupon Code to Payment Forms

  • Profile Image
    Nik_M
    Answered on May 12, 2021 at 11:08 AM

    Your form does not have decimal places.

    1620831962_609beeda6f956_cuopon.PNG

    Did you resolve the issue? If the issue is related to some other form, please share the form URL or a webpage URL if the issue is related to an embedded form.

  • Profile Image
    lovingnaturecoffee
    Answered on May 12, 2021 at 11:43 AM

    thanks for your reply. I mean invoice instead, after filling the form and the invoice generated, there are decimal place shown. How could I fix it? Thanks!

  • Profile Image
    FelipeSantana
    Answered on May 12, 2021 at 12:56 PM

    Hello @lovingnaturecoffee,

    Thank you for the clarification.

    I did review the invoices on your account and it seems that they do have decimals in the price totals. Unfortunately, this cannot be changed as this is the exact amount that was charged to the person that made the purchase.

    1620838185_609c07298f151_

    Please note that purchased details cannot be edited as they are saved and registered to the payment integration that you have connected to the products list field.

    Also, I did run a test submission on your form and I can see that the decimals are still showing when the coupon code is applied. This happens because you are subtracting 12% from the products and that automatically makes them decimals. There is no option for rounding up or down to remove the decimals when a coup code is applied.

    Your best option here would be to subtract a fixed number from the products instead of a percentage to prevent decimals in the price totals.

  • Profile Image
    Mike_G
    Answered on May 12, 2021 at 11:57 PM

    I would like to apologize for any inconvenience. I'm afraid that the feature you are looking for is not available. There seem to be no options to have different discount amounts or percentages for different products using the same coupon code.

    Feel free to let us know if you need any further assistance.