Drop down option for buy now button generates wrong code

graphicmagic
Contributor
Contributor

I tried to make a buy now button with the options:

 

One (includes shipping) 14.50

Two (includes shipping) 20.00

 

when I save the code it shows up as two drop down buttons side by side instead of a drop down with the two selections to pick from. 

 

It there any way to correct this problem? Or is this something that PayPal has to fix on their end?

 

Here's the code:

<form 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="HJTDLMZ7TGRR8">
<table>
<tr><td><input type="hidden" name="on0" value="Amounts">Amounts</td></tr><tr><td><select name="os0">
<option value="One (includes shipping)">One (includes shipping) $14.50 USD</option>
<option value="Two (includes shipping)">Two (includes shipping) $20.00 USD</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="https://www.paypalobjects.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.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

 

Right now that button option is unuseable. I'll have to make two separate buttons if I want two prices until PayPal can fix this problem.

 

It's also possible that the code is correct, but the editor in Wordpress isn't rendering the code as it should be. I'll contact their forum too.

 

 

 

Login to Me Too
4 REPLIES 4

gourdguru
Contributor
Contributor

I pasted the c ode on notepad and then pasted it into a test page on my site and it's working fine. I think you should contact wordpress or cut and paste the code from paypal into notepad and then copy it and paste into the html view in wordpress.

 

Nedra

Login to Me Too

graphicmagic
Contributor
Contributor

Yes, it's a problem with the Wordpress editor. I'll show the code on their help forum.

 

The paypal code is correct I tried it in another web editor. So its Wordpress's fault.

 

 

Login to Me Too

davidpakman
New Community Member

I'm having the same problem, also in wordpress...did you find a solution? WOuld you be willing to post it here?

Login to Me Too

PayPal_Frank
Administrator
Administrator

Hi everyone,

 

Great thread.  I wanted to pop in and let everyone know about this Wordpress tutorial created by one of the Integrations experts over at x.com:

 

WordPress Shopping Cart Tutorial

 

As WordPress will modify the PayPal button code in some situations, using a WordPress plugin is probably the easiest solution unless you want to manually fix the HTML code in WordPress.

 

I hope this helps. 🙂

 

- Frank

If you see a helpful post, please accept it as a solution or give the author kudos. 🙂 Thanks!
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.