goldeniws Posted December 8, 2020 Share Posted December 8, 2020 how set $decimals = 3; for example price 10.750 TND 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 12, 2020 Share Posted December 12, 2020 WHMCS only supports 2 decimal places in pricing - if you need to go beyond two decimal places, then you would need to update the database tables to allow more decimal places to be supported. 0 Quote Link to comment Share on other sites More sharing options...
Honxt Hosting Posted February 7, 2021 Share Posted February 7, 2021 Yes, we can increase the decimal points in tbls but the price display template is still restrictive to 2 decimals- any suggestions? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 10, 2021 Share Posted February 10, 2021 On 07/02/2021 at 00:09, Honxt Hosting said: Yes, we can increase the decimal points in tbls but the price display template is still restrictive to 2 decimals- any suggestions? well checking your license is valid might be a good first step... but let's assume that you're just testing WHMCS for now! 🙂 I wouldn't expect the templates to be the issue here, there will be internal coding that defines the currency formats to either 2 or 0 places... but I would have thought with the decimal places increased in the tables, then directly accessing pricing from the db would be an option to overwrite array values and used in calculations - for the most part, they're often strings not numbers.... creating a custom currency format is not really an option.... however, it took WHMCS 8 years to set tax rates to 3 decimal places, and pricing to 14 digits... so if they decided not to increase it to 3 or more decimal places at the same time, then in all honesty, it's likely going to be many years before they make such a change. possibly, if all you need to do is add a 0 to the end of existing prices, then that's one thing (either a lot of template changes or hooks)... otherwise you might be looking at using number format to increase the number of decimal places on each value - there is no quick fix for this situation that i'm aware of. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.