Problem with "Buy Now" button with drop down menu

healingcenter
Contributor
Contributor

Hi there,

 

I have made three "Buy Now" buttons with drop-down menus, so that customers can add tips of varying amounts.  The problem is, only one of the "drop downs" works, no matter which is selected.  For example, using the $60 button, any choice other than $60 leads to a payment screen for $65.  Please help!  The buttons can be seen at:  http://www.medical-massage.biz/medical-massage/massage-payment/

 

Thanks)

Login to Me Too
2 REPLIES 2

freelunch
Contributor
Contributor

Hi,

 

Your site is using hosted buttons. This means that the code that tells PayPal which options associate with each price value are not visible to us in the website code.  Those variables are hidden as part of the hosted button id:

 

<input type="hidden" name="hosted_button_id" value="Q3HPLBK8HGRKN">

 

You will want to make sure that the "Add drop-down menu with price/option " is checked and NOT "Add drop-down menu " under step one of the button creator.

 

I've included a non-hosted button code below.  This code works for changing the price.  But if you decide to use it, you would not be able to make any changes to the button using the PayPal button manager.  The button would have to be recreated from scratch.

 

 

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="*enter your PayPal account email address here*">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="One hour massage - $60">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Add special instructions to the seller">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="weight_unit" value="lbs">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
<table>
<tr><td><input type="hidden" name="on0" value="Choose an amount below:">Choose an amount below:</td></tr><tr><td><select name="os0">
	<option value="60 minute massage">60 minute massage $60.00</option>
	<option value="60 minute massage + tip">60 minute massage + tip $65.00</option>
	<option value="60 minute massage + tip">60 minute massage + tip $70.00</option>
	<option value="60 minute massage + tip">60 minute massage + tip $75.00</option>
	<option value="60 minute massage + tip">60 minute massage + tip $80.00</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="option_select0" value="60 minute massage">
<input type="hidden" name="option_amount0" value="60.00">
<input type="hidden" name="option_select1" value="60 minute massage + tip">
<input type="hidden" name="option_amount1" value="65.00">
<input type="hidden" name="option_select2" value="60 minute massage + tip">
<input type="hidden" name="option_amount2" value="70.00">
<input type="hidden" name="option_select3" value="60 minute massage + tip">
<input type="hidden" name="option_amount3" value="75.00">
<input type="hidden" name="option_select4" value="60 minute massage + tip">
<input type="hidden" name="option_amount4" value="80.00">
<input type="hidden" name="option_index" value="0">
<input type="image" src="https://www.paypal.com/en_US/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_US/i/scr/pixel.gif" width="1" height="1">
</form>

 

 

 

Login to Me Too

healingcenter
Contributor
Contributor

Thanks freelunch,

 

Thanks very much for coding up the sweet non-hosted button.  I am going to test a couple of other options before using that option - trying to keep things as secure as possible)

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.