Jump to content

More decimal to accept bitcoin


Lek

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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:

 

locate-answer.jpg

 

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

Link to comment
Share on other sites

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. :roll:

 

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.

Link to comment
Share on other sites

  • 2 weeks later...

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