Jump to content

how edit decimals


goldeniws

Recommended Posts

  • 1 month later...
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated