• Resolved Roberto B.

    (@berlinipannellisnc)


    Hello.
    in this product page, same in other pages on my site (all using this plugin) i noticed a problem.

    When i import orders in my invoice program, the product price is rounded up to 2 decimals, and then it is multiplied by the numer of products purchased.

    Instead, your plugin doesn’t round the product price, but it keeps the real value with more than 2 decimals. It multiplies the product price (not rounded) for the number of products, and only then it rounds the price up to 2 decimals.

    This means that there will be a difference in the price calculated between your plugin and my invoice software.

    Will it be possibile to use rounded price for the single product before multiplying it with the product number?

    Thank you

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @berlinipannellisnc

    Thank you very much for using our plugin. To round the equation result with two decimals, you can use the PREC operation.

    PREC(X, Y) rounds the number X with Y decimals.

    For example, assuming you have the equation fieldname1*fieldname2. Edit the equation as follows:

    PREC(fieldname1*fieldname2, 2);

    Best regards.

    Thread Starter Roberto B.

    (@berlinipannellisnc)

    Hello,

    thank you for the reply.
    I’m already using that formula in every product.

    What esle could it be?

    Roberto

    Plugin Author codepeople

    (@codepeople)

    Hello @berlinipannellisnc

    You must use the PREC operation in the equation that calculates the product price, no matter if the form is associated with one product or many. The behavior would be applied in the form context.

    Best regards.

    Thread Starter Roberto B.

    (@berlinipannellisnc)

    I meant, i’m using that formula on every product price. I calculate product price using PREC formula in all the products i created using CFF

    Roberto

    Plugin Author codepeople

    (@codepeople)

    Hello @berlinipannellisnc ,

    I tested your form, and the calculated price has the two decimal places. Please, look at the screenshot image below:

    Please, note we are not allowed to support any customers in these forums, and the WooCommerce integration is a commercial feature.

    For pro or commercial product support please contact us directly on our site. This includes any pre-sales topics as well.

    Commercial products are not supported in these forums. We will happily answer this and any other questions you can have on our own site.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Rounded price decimal’ is closed to new replies.