Lek Posted June 2, 2017 Share Posted June 2, 2017 Hi, I would like to have at list 4 decimal to accept payment in Bitcoin. I already modify the table (decimal 10, 2 to 10,4) and I even modify the current rate to convert to base currency to 10,8 (8 decimal). But the cart show only 2 decimal. I think the problem is in the currency format (configcurrencies.php)That offer only 4 different format. How can be edited it? Or other solution to show more decimal to sell with Bitcoin? Version WHMCS: 6.3.1 Thank you. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 2, 2017 Share Posted June 2, 2017 going from my old replies on this topic, I suspect it could be done... https://forum.whmcs.com/showthread.php?114366-Can-WHMCS-be-setup-the-billing-as-0-000 https://forum.whmcs.com/showthread.php?90090-More-demicals-in-configurable-options if memory serves, the correct multi-decimal values are stored in the database tables but were sometimes rounded up in the cart - you may end up needing to use multiple hooks to query the database to get the full values from the database. in short, it can't be done just from settings and may require a lot of work to ensure it works throughout the site. have you checked out any Bitcoin modules in Marketplace - perhaps one of them will allow you to use Bitcoins without additional WHMCS database changes. 0 Quote Link to comment Share on other sites More sharing options...
Lek Posted June 3, 2017 Author Share Posted June 3, 2017 Hi Brian, thank you for your answer. Yes I check already these solution and I did apply to my tables. The problem is that then are not shown (show only 2 decimal). I think the solution is in here: https://requests.whmcs.com/topic/apostrophe-thousand-separator-currency-format Exactely from WHMCS Dev Team: but before update I would like to be sure it works. I did not find any recall in http://docs.whmcs.com/Version_7.1_Release_Notes Do you have a 7.1 that show 4 decimal? About the Marketplace all the plugin let you shop in common currency and then they convert in Bitcoin as I am already doing. Instead, I would like to show the price in Bitcoin. Thank you, bye. Lek 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 3, 2017 Share Posted June 3, 2017 Hi Lek, Hi Brian, thank you for your answer.Yes I check already these solution and I did apply to my tables. The problem is that then are not shown (show only 2 decimal). I think the solution is in here: https://requests.whmcs.com/topic/apostrophe-thousand-separator-currency-format Exactly from WHMCS Dev Team: but before update I would like to be sure it works. I did not find any recall in http://docs.whmcs.com/Version_7.1_Release_Notes Do you have a 7.1 that show 4 decimal? I just tried changing a monthly product to show a price to 4 digits in v7.2.2 - it works on the admin side, but in the cart, it's passed with 2 digits (and rounded up) - think the same occurs in v6.3.1 too. I couldn't see any mention of it in the release notes either - I can recall the Price Formatter documentation - but of course, as with all WHMCS documentation, they give you the bare bones and then expect you to work out the finer points of using it yourself. i've happily used it previously to modify prices to remove suffix/prefix or just to access the value of a price, but i've never tried the format option - you might want to have a play with that and see if you get anywhere... but whether you could define a 5th currency format purely in the templates, i'd have my doubts. About the Marketplace all the plugin let you shop in common currency and then they convert in Bitcoin as I am already doing. Instead, I would like to show the price in Bitcoin. I still think that even if this fabled v7.1 feature that the dev mentioned exists, it's going to take some effort to make it work. 0 Quote Link to comment Share on other sites More sharing options...
Lek Posted June 14, 2017 Author Share Posted June 14, 2017 Hi, maybe I will upgrade but still I am afraid to incur in many problems after upgrade so I should find the time to do it right. Thank you anyway for now. Bye, Lek 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.