Bob,
it's ok for the plugin, Max sent it and I was able to install the plugin on the form
but I have a bug now I didn't have with the Trial plugin.
the total amount field is automatically filled regarding to what the user edit in the form
the LoadJS event was set to add € to the amount (eg : total to be paid : 200
€) see code at the end of this post
with that "€" sigle on the total-amount field - Paypal has a problem.
Le lien que vous avez utilisé pour accéder au système PayPal contient un montant d'objet incorrectement formaté.
Paypal does not recognize the amount (I think the plugin add the euro sigle as it is already added - so the amount is probably 200€€)
Maybe I can fix it in Paypal redirect Event with "Currency Code" empty ?
here is my LoadJS Event
window.addEvent('domready', function() {
$('total_soiree_restaurant').addEvent('change', rekenen1);
$('total_club').addEvent('change', rekenen1);
$('total_coupe').addEvent('change', rekenen1);
$('total_ski_seul').addEvent('change', rekenen1);
$('total_buffet').addEvent('change', rekenen1);
$('total_soiree_montagne').addEvent('change', rekenen1);
$('total_ski_libre').addEvent('change', rekenen1);
});
function rekenen1(){
$('total_a_payer').value = parseInt($('total_soiree_restaurant').value * 40)+ parseInt($('total_club').value * 15) + parseInt($('total_coupe').value * 30) + parseInt($('total_ski_seul').value * 22) + parseInt($('total_buffet').value * 25) + parseInt($('total_soiree_montagne').value * 60) + parseInt($('total_ski_libre').value * 22) + '€'}