|
Posted by Frederick Smith on 09/12/06 04:52
Hi there,
I have been asked to help with some html to get a transaction started on a
PayPal shopping cart.
There's a dropdown with option values for the sizes, and another for the
colours of the products. I can get the "add to shopping cart" button to
work, and send the values to the PayPal site, and then either process the
transaction or continue shopping.... but.....
The problem is that a couple of the products comes in 3 sizes, small, medium
and large - and they are sold for 3 different prices, but the price for
each item is sent as a single fixed "hidden variable" in the same form.
Is there some way that I can get the drop down to send different hidden
values for the amount of the transaction AND the size.
something like ....
<option value="Small">Small</option> ( some operator here ) <input
type="hidden" name="amount" value="5">
<option value="Medium">Medium</option> ( some operator here ) <input
type="hidden" name="amount" value="10">
<option value="Large">Large</option> ( some operator here ) <input
type="hidden" name="amount" value="20">
might do the trick ... but I dont even know of its possible to join the
parameters together, let alone what sort of operator or syntax to use.
If its just impossible, I will resort to perl scripting - but it would be
nice to know that it could be done simply in html
Any suggestions
Frederick
Navigation:
[Reply to this message]
|