varunsridharan / woocommerce-quick-donation

Online Donation Using Woocoomerce. for woocommerce user's
https://wordpress.org/plugins/woocommerce-quick-donation
GNU General Public License v2.0
7 stars 11 forks source link

50 cents #78

Open John078 opened 8 years ago

John078 commented 8 years ago

Hi,

I want to let the users make a donation of half euros. For example €25,50. How can i do it?

Thanks in advance!

John078 commented 8 years ago

Well, i tried it again but it didn't work. In the image u can see whats the error. I looken in my Woocommerce settings and there stays: Decimal Separator: . Number of Decimals: 2 But still doesn't work. Here u see the image, its dutch because im from holland, but it says: "put a valid value, the closest numbers are 15 and 16." error_quickdonation

varunsridharan commented 8 years ago

@John078 Then please override this template

woocomerce-quick-donation/template/fields/field-text.php

And add the blow code on the top of the override template

if($id == 'donation_price'){$field_type = 'text';}
John078 commented 8 years ago

Thanks, this worked for me!

John078 commented 8 years ago

Hi again, Can i please ask u one more thing?

I only want to have a positive amount of donation. How can i do this? Tried so many things but -6 also works and then i have to pay -6 euros. Seems ugly..