Managed to do anonline order form that does stuff I need inc. the simple sums and adding VAT.
Now I need to integrate with the WorldPay "Select Junior" shopping cart. This is dead simple in principle, just put the right values in hidden fields like 'amount' and put WorldPay's link in the form action field. So no probs. sending details relevant to the transaction like customer address, amount payable etc. for the transaction. We can then pick them up from the Customer Management System.
Only thing is we need more than basic customer and total amount details to fill the order, how many of each product they want, which licence, whether using school's learning credits etc. Can't see any way to send those to WorldPay, apart from trying to pack them into the description or cart ident fields which is messy and very limited.
Is it possible to have two action fields so form is sent with different details to two places when you submit or what? How is this usually done? Any ideas from more web literate types welcomed.
PS Maybe I could use onsubmit in submit button to mail myself the form? Not sure how one kicks off a php script from javascript tho. such that result is same as if you put it in action field.
Now I need to integrate with the WorldPay "Select Junior" shopping cart. This is dead simple in principle, just put the right values in hidden fields like 'amount' and put WorldPay's link in the form action field. So no probs. sending details relevant to the transaction like customer address, amount payable etc. for the transaction. We can then pick them up from the Customer Management System.
Only thing is we need more than basic customer and total amount details to fill the order, how many of each product they want, which licence, whether using school's learning credits etc. Can't see any way to send those to WorldPay, apart from trying to pack them into the description or cart ident fields which is messy and very limited.
Is it possible to have two action fields so form is sent with different details to two places when you submit or what? How is this usually done? Any ideas from more web literate types welcomed.
PS Maybe I could use onsubmit in submit button to mail myself the form? Not sure how one kicks off a php script from javascript tho. such that result is same as if you put it in action field.
Comment