Answers.Body: <p><strong>Short answer</strong>: I've prepared a patch that I'd love for someone to test to fix this.</p>
  
  <p><strong>Longer answer</strong>: In recent months, CiviCRM has implemented support for currencies with more than two digits after the decimal point.  This is important both for cryptocurrencies as well as certain countries' tax calculations.  The decision was, "Store all currencies in the database with nine significant digits, and when displaying them, format them according to the rules of that currency."</p>
  
  <p>This all happened in CiviCRM core and it went so well that end users who didn't need the greater accuracy didn't notice.  Unfortunately, no one updated Simple Donate.</p>
  
  <p>I don't use Simple Donate, but recently handled a similar problem in my custom code, so I looked and it was a 4 line fix.</p>
  
  <p>I'd love for someone affected by this problem to test my patched version and report back if you have any problems with it.  If there are no issues, I'll submit the patch to the original authors. I'd especially love feedback from users who don't use US dollars as their currency!</p>
  
  <p>Find the fix on <a href="https://github.com/MegaphoneJon/com.webaccessglobal.simpledonate/tree/sig-digit-fix" rel="noreferrer">my Github repo</a> or <a href="https://github.com/MegaphoneJon/com.webaccessglobal.simpledonate/archive/sig-digit-fix.zip" rel="noreferrer">download directly</a>.  When unzipping, please be sure to rename the folder to match your old extension folder name that you're replacing.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-17T00:07:19.217Z
Answers.Text: As an additional comment - I noticed that no one had informed the original authors of the problem.  The extension has a "Support" URL when you're in the extensions menu, but there are no tickets reporting this issue.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-17T04:05:43.240Z
Answers.Text: But  shouldn't the extension be reading the Label field for the buttons and not the Amount field? I actually created an account on civicrm.com so I could report the problem the authors, but I haven't been able to log in.
Answers.UserDisplayName: fdarn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-17T05:54:49.033Z
Answers.Text: @fdarn This extension isn't written by the CiviCRM core team, so they won't be able to help you.  I just posted a new question to show how to report a bug on an extension: https://civicrm.stackexchange.com/questions/25746/how-can-i-report-a-bug-about-an-extension/25747#25747
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-17T14:37:14.833Z
Answers.Text: I posted the issue with the extension's authors, but seeing how they have 9 other issues they haven't responded to in over a year, I am not encouraged.  So I take it nobody else uses Simple Donate.  Is there another similar extension or option?  Surely not everyone is using just the basic civi form?
Answers.UserDisplayName: fdarn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-17T17:45:32.793Z
Answers.Text: @fdarn If you could test my fix and confirm it solves the problem, they're more likely to merge something already written than write their own fix.  As for whether it should be reading the label vs. the amount - I can't say.  This is how the extension was written, and have no thoughts as to whether it's the best way.  I think there's an argument that it would be hard to maintain the simple layout with arbitrary length labels, but I also see your argument that this is less flexible.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-17T20:13:18.637Z
Answers.Text: @fdarn To answer "what people use" - I most often use the basic Civi form, which can be styled quite extensively using CSS.  I also sometimes use CiviCRM-Webform integration on Drupal.  My understanding is that Caldera Forms on WordPress can also take payments now, though with limitations.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-19T14:33:17.173Z
Answers.Text: G  I am using your fix on my test site now. So far it seems much better.  I would prefer to show it as $10 in the buttons instead of $10.00 . Is there a line I could edit to do that?  I just finished installing it and taking the first look. So I can 't yet say there are no issues, but if you only made minimum changes to the original extension, it is probably good.
Answers.UserDisplayName: fdarn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-20T15:47:14.243Z
Answers.Text: @fdarn I made an alternate version that drops zeroes when not necessary: https://github.com/MegaphoneJon/com.webaccessglobal.simpledonate/tree/sig-digit-fix-alt
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-20T17:21:22.903Z
Answers.Text: G Thank you.  That did work.  It did remove the additional zeros as I wanted it to. However when I try to advance to the credit card information step, it is blank space with no form.  I am now convinced that Simple Donate and IATS cannot be used together.  Unless someone can confirm they are using it together, this is very disappointing.
Answers.UserDisplayName: fdarn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-20T17:45:45.307Z
Answers.Text: @fdarn I recommend asking on https://chat.civicrm.org.  Simple Donate isn't very popular, but iATS is, so I'm guessing you'll find someone who can give feedback.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-17T00:06:13.640Z
Answers.LastActivityDate: 2018-07-17T00:11:15.407Z
Answers.LastEditDate: 2018-07-17T00:11:15.407Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>Hi  I am using CiviCrm 5 on wordpress, </p>
  
  <p>donation amounts displayed with zeros floating points after the decimal for example 25.00000000 instead of 25</p>
  
  <p>Is there any solution?</p>
  
  <p><a href="https://i.sstatic.net/5np0q.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/5np0q.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.sstatic.net/P6iFh.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/P6iFh.jpg" alt="enter image description here"></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-12T20:45:57.793Z
Comments.Text: Adding a link for the extension https://civicrm.org/extensions/simple-donate
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-14T04:29:37.237Z
Comments.Text: Possible duplicate of https://civicrm.stackexchange.com/questions/24556/simple-donations-donation-amounts-display-incorrectly but no solution
Comments.UserDisplayName: Andrew Thompson
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-15T14:36:54.117Z
Comments.Text: I am having the same problem. All those zeros are in the Price Set - Price Options configurations for Option Amount. The problem appears to be that Simple Donate is showing the Option Amounts, not the Option Label, like it is supposed to. [![enter image description here](https://i.sstatic.net/5np0q.jpg)](https://i.sstatic.net/5np0q.jpg) [![enter image description here](https://i.sstatic.net/P6iFh.jpg)](https://i.sstatic.net/P6iFh.jpg)
Comments.UserDisplayName: fdarn
Tags: <contribution-page><simple-donate-form>
Title: zero s after the decimal in simple donate
ThreadText: # zero s after the decimal in simple donate
  
  (Asked by: username_0 on 2018-05-12)
  
  Hi I am using CiviCrm 5 on wordpress,
  
  donation amounts displayed with zeros floating points after the decimal for example 25.00000000 instead of 25
  
  Is there any solution?
  
  [![enter image description here](https://i.sstatic.net/5np0q.jpg)](https://i.sstatic.net/5np0q.jpg)
  
  [![enter image description here](https://i.sstatic.net/P6iFh.jpg)](https://i.sstatic.net/P6iFh.jpg)
  
  **Tags:** contribution-page, simple-donate-form
  
  > **Comments:**
  > **username_1**: Adding a link for the extension https://civicrm.org/extensions/simple-donate  
  > **username_2**: Possible duplicate of https://civicrm.stackexchange.com/questions/24556/simple-donations-donation-amounts-display-incorrectly but no solution  
  > **username_3**: I am having the same problem. All those zeros are in the Price Set - Price Options configurations for Option Amount. The problem appears to be that Simple Donate is showing the Option Amounts, not the Option Label, like it is supposed to. [![enter image description here](https://i.sstatic.net/5np0q.jpg)](https://i.sstatic.net/5np0q.jpg) [![enter image description here](https://i.sstatic.net/P6iFh.jpg)](https://i.sstatic.net/P6iFh.jpg)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_4 on 2018-07-17. Score: 5
  
  **Short answer**: I've prepared a patch that I'd love for someone to test to fix this.
  
  **Longer answer**: In recent months, CiviCRM has implemented support for currencies with more than two digits after the decimal point. This is important both for cryptocurrencies as well as certain countries' tax calculations. The decision was, "Store all currencies in the database with nine significant digits, and when displaying them, format them according to the rules of that currency."
  
  This all happened in CiviCRM core and it went so well that end users who didn't need the greater accuracy didn't notice. Unfortunately, no one updated Simple Donate.
  
  I don't use Simple Donate, but recently handled a similar problem in my custom code, so I looked and it was a 4 line fix.
  
  I'd love for someone affected by this problem to test my patched version and report back if you have any problems with it. If there are no issues, I'll submit the patch to the original authors. I'd especially love feedback from users who don't use US dollars as their currency!
  
  Find the fix on [my Github repo](https://github.com/MegaphoneJon/com.webaccessglobal.simpledonate/tree/sig-digit-fix) or [download directly](https://github.com/MegaphoneJon/com.webaccessglobal.simpledonate/archive/sig-digit-fix.zip). When unzipping, please be sure to rename the folder to match your old extension folder name that you're replacing.
  
  > **Comments:**
  > **username_4**: As an additional comment - I noticed that no one had informed the original authors of the problem.  The extension has a "Support" URL when you're in the extensions menu, but there are no tickets reporting this issue.  
  > **username_3**: But  shouldn't the extension be reading the Label field for the buttons and not the Amount field? I actually created an account on civicrm.com so I could report the problem the authors, but I haven't been able to log in.  
  > **username_4**: @username_3 This extension isn't written by the CiviCRM core team, so they won't be able to help you.  I just posted a new question to show how to report a bug on an extension: https://civicrm.stackexchange.com/questions/25746/how-can-i-report-a-bug-about-an-extension/25747#25747  
  > **username_3**: I posted the issue with the extension's authors, but seeing how they have 9 other issues they haven't responded to in over a year, I am not encouraged.  So I take it nobody else uses Simple Donate.  Is there another similar extension or option?  Surely not everyone is using just the basic civi form?  
  > **username_4**: @username_3 If you could test my fix and confirm it solves the problem, they're more likely to merge something already written than write their own fix.  As for whether it should be reading the label vs. the amount - I can't say.  This is how the extension was written, and have no thoughts as to whether it's the best way.  I think there's an argument that it would be hard to maintain the simple layout with arbitrary length labels, but I also see your argument that this is less flexible.  
  > **username_4**: @username_3 To answer "what people use" - I most often use the basic Civi form, which can be styled quite extensively using CSS.  I also sometimes use CiviCRM-Webform integration on Drupal.  My understanding is that Caldera Forms on WordPress can also take payments now, though with limitations.  
  > **username_3**: G  I am using your fix on my test site now. So far it seems much better.  I would prefer to show it as $10 in the buttons instead of $10.00 . Is there a line I could edit to do that?  I just finished installing it and taking the first look. So I can 't yet say there are no issues, but if you only made minimum changes to the original extension, it is probably good.  
  > **username_4**: @username_3 I made an alternate version that drops zeroes when not necessary: https://github.com/MegaphoneJon/com.webaccessglobal.simpledonate/tree/sig-digit-fix-alt  
  > **username_3**: G Thank you.  That did work.  It did remove the additional zeros as I wanted it to. However when I try to advance to the credit card information step, it is blank space with no form.  I am now convinced that Simple Donate and IATS cannot be used together.  Unless someone can confirm they are using it together, this is very disappointing.  
  > **username_4**: @username_3 I recommend asking on https://chat.civicrm.org.  Simple Donate isn't very popular, but iATS is, so I'm guessing you'll find someone who can give feedback.  
  
  ---
  
  