Hi,
I've used this plugin a couple times before. The syntax for the Multiple option is pretty straight forward Amount|Desciption.
It works perfectly in the past.
However on a new website, its failing.
My Syntax is simple
40|On or Before May 30
50|After May 30
When I publish or view the form I'm getting this
<input type="hidden" name="form[formId]" value="1"/></form><script type="text/javascript">
function getPrice_1()
{
price = 0;
products = new Array();
price += parseFloat(products[document.getElementById('paypal-106').value]);
document.getElementById('paypal_total_1').innerHTML = number_format( price, 2, '.', ',');
document.getElementById('paypal_total_1').value = price;
document.getElementById('Total').value = price;
}
</script><script type="text/javascript">getPrice_1();</script>
</div>
On a working form I get
function getPrice_2()
{
price = 0;
products = new Array();
products['Select:'] = '0';
products[' 5-6 Division Flag Football'] = '85.00 ';
products[' 7-8 Division Flag Football'] = '100.00 ';
products[' 9-10 Division Flag Football'] = '100.00 ';
products[' 11-12 Division Flag Football'] = '100.00 ';
price += parseFloat(products[document.getElementById('paypal-117').value]);
document.getElementById('paypal_total_2').innerHTML = number_format( price, 2, '.', ',');
document.getElementById('paypal_total_2').value = price;
document.getElementById('Total').value = price;
}
I'm thinking something is broken. Its no longer passing the options in the getPrice () function.
The "Single" option works fine. I've tried reinstalling the plugin and component, remaking the form and remaking the options. Nothing works.
TIA