hello
right i have managed to make a basic form with the redirct plugin to paypal on a single item.
now im having trouble with using the redirct plugin and using drop down boxes
i have a drop down box
choose one: (drop down box choice)
full = 12
half = 6
in PayPal i have a button that is the same as the one above
i have put in some of the required values such as business and cmd=_s-xclick etc
but where and how do i enter the details for the drop down box as the drop down from chronoforms only supplies one field entry on the redict plugin
*scratches head*
thanks for the continued help !
right i have managed to make a basic form with the redirct plugin to paypal on a single item.
now im having trouble with using the redirct plugin and using drop down boxes
i have a drop down box
choose one: (drop down box choice)
full = 12
half = 6
in PayPal i have a button that is the same as the one above
i have put in some of the required values such as business and cmd=_s-xclick etc
but where and how do i enter the details for the drop down box as the drop down from chronoforms only supplies one field entry on the redict plugin
*scratches head*
thanks for the continued help !
Hi barnfold,
Can you give me a bit more info - what do you need to send to PayPal for each of these options? Are they amounts of 6 & 12? And what is the select box name?
Bob
Can you give me a bit more info - what do you need to send to PayPal for each of these options? Are they amounts of 6 & 12? And what is the select box name?
Bob
thanks again for such a swift relpy !
ok its a booking form.
i have created a button with 2 options in paypal called 'classes' and the two options are full = £12 and half = £6
basically i want a user to come to the form choose which option and goto payapl with he right option selected from the dropdown box
here is the paypal button if that helps
ok its a booking form.
i have created a button with 2 options in paypal called 'classes' and the two options are full = £12 and half = £6
basically i want a user to come to the form choose which option and goto payapl with he right option selected from the dropdown box
here is the paypal button if that helps
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="8769585">
<table>
<tr><td><input type="hidden" name="on0" value="classes">classes</td></tr><tr><td><select name="os0">
<option value="full">full £12.00
<option value="half">half £6.00
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="GBP">
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
hi i read another post similar and you mention use some code in the onsubmit http://www.chronoengine.com/forums.html?cont=posts&f=2&t=13190&p=26772&hilit=paypal+dropdown#p26772
is this the case with my issue or can i get away with still using the redirect plugin (though im still lost as to how as above) ?
thank you🙂
is this the case with my issue or can i get away with still using the redirect plugin (though im still lost as to how as above) ?
thank you🙂
Hi barnfold,
I think I wrote the ReDirect URL after that pos tto make life easier
The code you've posted is for a PayPal hosted button. Can you get the equivalent code for a non-hosted button? I'm nto sure that the variables you have there will work if PayPal aren't hosting it.
Bob
I think I wrote the ReDirect URL after that pos tto make life easier
The code you've posted is for a PayPal hosted button. Can you get the equivalent code for a non-hosted button? I'm nto sure that the variables you have there will work if PayPal aren't hosting it.
Bob
ermmm how would i go about doing that i didnt know there were non hosted ones ?
is it because its a saved button or something ?
ok did a quick search and here it is non hosted (was to do with the saving it as a paypal button and then having to remove the protection etc)
hope that helps a bit more ?
is it because its a saved button or something ?
ok did a quick search and here it is non hosted (was to do with the saving it as a paypal button and then having to remove the protection etc)
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="*************">
<input type="hidden" name="lc" value="GB">
<input type="hidden" name="item_name" value="classes">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="cn" value="Add special instructions to the seller">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
<table>
<tr><td><input type="hidden" name="on0" value="classes">classes</td></tr><tr><td><select name="os0">
<option value="full">full £12.00
<option value="half">half £6.00
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="option_select0" value="full">
<input type="hidden" name="option_amount0" value="12.00">
<input type="hidden" name="option_select1" value="half">
<input type="hidden" name="option_amount1" value="6.00">
<input type="hidden" name="option_index" value="0">
<input type="image" src="https://www.paypal.com/en_US/GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
hope that helps a bit more ?
Hi barnfold,
Here's a worked example. I've used radio buttons here for more clarity but the rest of the code should be the same.
I have a simple form created using the Form Wizard with two extra hidden fields at the end.
[attachment=3]10-10-2009 15-17-27.png[/attachment]
The Form html is
On the URL Parameters tab enter the PayPal URL and set the Flow Control to 'After Email'.
[attachment=2]10-10-2009 15-21-02.png[/attachment]
On the Extra Code tab add this code which will check which button was selected and set the values of the two hidden fields to match.[code=php]<span class="syntaxdefault"><?php<br />$classes
Here's a worked example. I've used radio buttons here for more clarity but the rest of the code should be the same.
I have a simple form created using the Form Wizard with two extra hidden fields at the end.
[attachment=3]10-10-2009 15-17-27.png[/attachment]
The Form html is
<div class="form_item">
<div class="form_element cf_radiobutton">
<label class="cf_label" style="width: 150px;">Classes</label>
<div class="float_left">
<input value="full" title="" class="radio" id="radio00" name="classes" type="radio" />
<label for="radio00" class="radio_label">full £12</label>
<br />
<input value="half" title="" class="radio" id="radio01" name="classes" type="radio" />
<label for="radio01" class="radio_label">half £6</label>
</div>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_button">
<input value="Submit" name="submit" type="submit" />
</div>
<div class="cfclear"> </div>
</div>
<input type='hidden' name='amount' value='' />
<input type='hidden' name='item_name' value='' />
Save the form. click the check box next to it and then click the link for the ReDirect plugin. On the URL Parameters tab enter the PayPal URL and set the Flow Control to 'After Email'.
[attachment=2]10-10-2009 15-21-02.png[/attachment]
On the Extra Code tab add this code which will check which button was selected and set the values of the two hidden fields to match.[code=php]<span class="syntaxdefault"><?php<br />$classes
This topic is locked and no more replies can be posted.