Closed emgk closed 6 years ago
@emgk You can save 0
amount without editing amount of level but 1.00
is default amount for a level.
For testing purpose, only Admin wants to create a level of 0
amount but any payment method provide sandbox account for that then why test it with the Live account and 0
amount.
We do not force Admin with hard validation on the level amount because Admin has the responsibility to create a form with valid settings
I think the question here though is how did @emgk get that one level to be a ZERO amount? That shouldn't be able to happen; because obviously it creates problems in other ways. Don't we want to always enforce a minimum amount?
I agreed with you @mathetos. Actually, we should add 1 in place of ZERO "0" if admin try to save the value
Like @DevinWalker comment here https://github.com/WordImpress/Give/issues/2425#issuecomment-347689478
I've reviewed the issue and it boils down to this: If on save a price level is 0
then revert it to 1.00
. Note: admins should be able to set values less than a dollar like 0.23
as a value. But if it's empty then revert it.
Please watch this a video where I review the issue: https://goo.gl/oxg9Rh
Issue Overview
Donation form with $0 amount is not showing Donation Total: above donate button in donation form in front-end. ( it can be intended behavior ) but when multi-level donation form with default level which has $0 price is introducing a bug.
Because when switching level on front-end it doesn't show Donation Total: ( if default donation level has value $0 ) but it is necessary because
stripe module checkout
taking donation amount fromdata-total
attribute or maybe other add-ons too.Expected Behavior
Donation total
field should show even if donation form has $0 amount.Current Behavior
Donation total
field doesn't appear even when switching donation level which has amount > $0.Possible Solution
Steps to Reproduce (for bugs)
Related Issues and/or PRs
Todos
WordPress Environment