impress-org / givewp

GiveWP - The #1 Donation Plugin for WordPress. Easily accept donations and fundraise using your WordPress website.
https://givewp.com/
GNU General Public License v3.0
339 stars 191 forks source link

The donation total should display rounded values when the "decimal amounts" option is disabled #6544

Open glaubersilva opened 2 years ago

glaubersilva commented 2 years ago

User Story

When using a multi-step form with the "decimal amounts" option disabled, the custom decimal amounts get rounded, but the "donation total" keeps displaying the decimal amount without rounded it.

Details

To disable decimal amounts go to: Your Form > Form Template > Visual Appearance > Decimal amounts

Expected Behavior

The same rounded value from the custom amount should be displayed on the donation total

Steps to Reproduce

  1. Setup a multi-step form with the "decimal amounts" option disabled
  2. Make a test donation with a custom decimal amount and exit from the input to see the rounded value
  3. Go to the next step in the form and before finishing the donation, on the "donation total" you should see the NOT rounded value

Visuals

decimal-values rounded-bug

Acceptance Criteria

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 14 additional days. Note, if this Issue is reporting a bug, please reach out to our support at https://givewp.com/support. If this is a feature request, please see our feedback board at feedback.givewp.com — that’s the best place to make feature requests, unless you’re providing a PR.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for an additional 14 days with no activity.

ash2osh commented 1 year ago

same issue here is there a fix ??

ma-ilsi commented 6 months ago

Hello! I believe the error is caused by fee-recovery frontend code. However, after tracking down everything in dev tools, I came to look at the source file but cannot find the fee-recovery code nor from where it may be generated. Any ideas?