-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom donation #110
Comments
I agree the current "currency mask" plugin we're using isn't the greatest option. There's a better way! I just haven't found a more reliable currency than: https://github.com/plentz/jquery-maskmoney Demo: http://plentz.github.io/jquery-maskmoney/ It has to be able to support custom thousands, decimals particularly. Any suggestions? |
Hey Devin As seen right above I have posted on two other jQuery Github repos. Perhaps they might fit in.... Some other sites. Have a great day! |
@paaljoachim I looked over the links you provided and am still leaning towards maskMoney - There's got to be something better out there though... |
As you notice I posted on their Github asking if they could make the process easier with their own code. |
👍 I faced the same difficulty. I like the http://www.gofundme.com/ approach. |
@ibndawood it looks like Go Fund Me never asks for a cent value? |
@DevinWalker, This thought never occurred to me. Maybe Give can just use whole numbers. Your thoughts ? |
I think some would want the ability to add decimals. I could see us provide the ability to toggle between maskMoney, the GoFund Me approach (no decimals), and off completely. Being truthful, the more I use maskMoney, the more I'm kinda thinking about keeping it around. @mathetos what are your thoughts? |
We need to keep decimals because we're talking about implementing that checkbox to allow the donor to donate the Credit Card fee, which would often end up with cents being added. Generally, I think maskMoney is working. It basically mimics how banks enter currency. Users will have to adjust to it no matter which way we go. So far, outside of this thread, we aren't getting any negative feedback so I don't think we should "fix" a problem that so far isn't there. |
I don't know if it helps at all, but what I use in my plugin is the accounting script to format the value after it has been entered. Then you could use html5 placeholders while it was still blank. The downside is that I am not sure the script is still under active development. |
@helgatheviking that accounting script looks pretty nice. I'm going to take a closer look at it. |
I find the maskmoney plugin is the total opposite of intuitive, which is discouraging because Give offers everything my organization needs, except this is a showstopper. If people can't figure out the input box, they won't be willing to donate. It would be helpful if Give allowed the user to type whatever they wanted and then displayed error messages when the value is invalid. As a web developer, is there any way I can help? Cheers |
@DevinWalker Let me know if you have any questions. I'm the author of the WooCommerce Name Your Price plugin and that script is what I am using to format the price input. You can see a demo here. If you type in a number, it is auto-formatted to the store's currency settings. If you type a word, it is formatted to 0, which can trigger errors (I support setting minimum prices, which you can see in the demo). I basically run a function such as the following whenever the input is updated (assuming all parameters from plugin options and passed via
|
@helgatheviking that script looks perfect. Also, I really enjoy your plugin. :) @artburkart it sounds like you really don't like the current maskMoney! Don't worry, we'll be taking care of it soon. What do you guys think of an advanced option in the plugin's settings to allow the user their preferred currency validation script? Is this giving the user too many options? The default option would be @helgatheviking's script. |
Thanks Devin! I think two formatting scripts would be too many options, but if you wanted to maintain both maybe a filter? That would be dev friendly in the case someone really, desperately, wanted to use the maskmoney script. Idk, I had it easy in that I went from having no script to adding the accounting script. :) |
Yeah, Helga's accounting script looks really good! I would say stick to it. Why do you want the option to either use maskMoney or the accounting script? I am happy that a solution finally came into place..:) |
Hey everyone, please give this branch a go. |
Hey @helgatheviking I just tested it out and looks great. Can you submit a PR from that branch to our repo? |
Against your main branch? I can do it when I get home.
|
Yeah that would be great. Master branch is good. |
* refactor: Move fields blocks to form meta
Clicking into the custom donation box it would be nice if the 0.00 went away, or atleast that one could use the delete button to remove the digits and then insert the donation amount.
Right now:
Cursor blinks behind the 0.00 amount.
Delete keyboard key does not work.
Writing for instance 50 the amount changes to 0.50.
Writing again 00 it then moves the amount forward to become 50.00.
Just a minor hassle but just removing the 0.00 giving an open space for the user to write the amount would be better.
The text was updated successfully, but these errors were encountered: