I'm using LM Paypal with Donation. Is there a way to add a textbox instead of a list of amount to select from.

We want people to be able to just type in the amount they wish to donate and not have to select from a predefined list of value.

The code snippet i used:

<?php
if (function_exists('lm_paypal_donate')) {
lm_paypal_donate(array(5,array(10),15), 'GBP', 'donation to example.com', '', 'Donation') .'<br/>';
}
?>

This creates a list but we only want a textbox so users can enter their own amount to donate.

Thanks,

Comments

john franklin’s picture

The 6.x-1.x version could use this PHP block to create a donation widget with a blank textfield. I would expect this to work with 2.x, too.

<?php
if (function_exists('lm_paypal_donate')) {
    print lm_paypal_donate(array(''), 'GBP', 'donation to example.com', '', 'Donation') . '<br/>';
}
?>