add to cart button

maifamilyservic
Contributor
Contributor

Below is the generated code will not work from my website. It works fine in "preview" mode but not when I save the code and test. The screen just flickers and stays on the same screen

 

 

 <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="EPDW39EBJAFSQ">
<table>
<tr><td><input type="hidden" name="on0" value="Ticket Types">Ticket Types</td></tr><tr><td><select name="os0">
<option value="Delux">Delux $100.00 USD</option>
<option value="General Seating">General Seating $30.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_cart_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>

Login to Me Too
2 REPLIES 2

Snow-Cat
Advisor
Advisor

The code you posted works perfectly fine, there's nothing wrong with it.   As we have no details about your web site, it's just a guess.   What we can tell you is that the PayPal Item Button code is basically an HTML Form.  Some web sites or the site hosting services don't play well with HTML Forms - for example, WordPress - it won't work with a PayPal Item Button direct however, you can use various Plug-Ins and URL links.   If your site or hosting service does allow an HTML Form, then there's probably another issue going on but, without knowing anything else or seeing an example - it's not possible to assist.

 

 

Login to Me Too

Snow-Cat
Advisor
Advisor

One simple thing you can try -

 

Refresh your web browser, delete the cookies, temp files, history and cache, then close the web browser, reopen it and retest your code - whenever you're testing button code, it best to always start clean.

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.