Active
Project:
lm_paypal
Version:
6.x-2.x-dev
Component:
LM Paypal Donations
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 May 2009 at 19:03 UTC
Updated:
10 May 2011 at 06:59 UTC
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
Comment #1
john franklin commentedThe 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.