• Hi,
    Is there any way to increase the number of decimal digits for more precise calculations. Apart from increasing the global setting in Woocommerce?
    I’m dividing small € amount by big numbers so 4 decimal places is the only setting I can get proper prices
    Example: 5000 business cards for €110. Price of 1 is 0.0575, when using only 2 digits it’s 0.6, which is in total gives me e120. Not a huge difference but when some one is ordering 10 different lots it makes a difference.
    Love the plugin anyway, cheers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Habibillah

    (@habibillah)

    Have you try Woocommerce settings?

    Woocommerce Settings

    Thread Starter redlik

    (@redlik)

    I did, all prices have 4 digits which is not how prices are presented.
    I’ve found this line in your code: ‘num_decimals’ => wc_get_price_decimals(). I’ve changed that to just ‘4’ and it works, so now how do I move that into my function file so in case of another update it won’t get overwritten?
    R.

    Plugin Author Habibillah

    (@habibillah)

    I’m not sure about your issue. Can you post how to replicate? so I can test it in my environment?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Number of decimal digits for calculations’ is closed to new replies.