options not working w/ add to cart button...first option goes into the cart no matter which I choose

AngelDog
Contributor
Contributor
5 REPLIES 5

skier
Advisor
Advisor

Unfortunately if you want help, we must be able to see your code.  Else there's nothing we can do to assist.  Can you provide a URL to web page that has your item button code?

 

 

Regards,

 

skier

Login to Me Too

skier
Advisor
Advisor

First problem,  if you have " or ' in the button code to represent inches or feet, this may cause unexpected results. To correct this, either spell out inches or feet or use ASCII " in place of " and ASCII ' in place of '.   Spelling out inches or feet works best universally.

 

 

Next, copy the code "exactly" as it was created by the online button creator and then using Notepad, paste the code into a blank page and save it as a text file.   Then rename the file with .html extension, save and test with a web browser.  If it works then you know that code provided by PayPal is fine.   At that point, anything else that is going on is caused your modifications.

 

 

Regards,

 

 

skier

Login to Me Too

AngelDog
Contributor
Contributor

ok...looks like paypal button is fine...now what?  anyone know what the issue could be..  Here is the code the way it copies into ms office web design tool:

 

<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="3E6E3NN9LJ3NC">
<table>
<tr><td><input type="hidden" name="on0" value="Buckle Options">Buckle Options</td></tr><tr><td><select name="os0">
 <option value="Standard Plastic">Standard Plastic $12.95</option>
 <option value="Polished Aluminum">Polished Aluminum $16.95</option>
</select> </td></tr>
<tr><td><input type="hidden" name="on1" value="Enter Fabric Choice">Enter Fabric Choice</td></tr><tr><td><input type="text" name="os1" maxlength="60"></td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="https://www.paypal.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.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

 

and here it is from paypal...looks the same to me...am i missing something?

 

<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="3E6E3NN9LJ3NC">
<table>
<tr><td><input type="hidden" name="on0" value="Buckle Options">Buckle Options</td></tr><tr><td><select name="os0">
    <option value="Standard Plastic">Standard Plastic $12.95</option>
    <option value="Polished Aluminum">Polished Aluminum $16.95</option>
</select> </td></tr>
<tr><td><input type="hidden" name="on1" value="Enter Fabric Choice">Enter Fabric Choice</td></tr><tr><td><input type="text" name="os1" maxlength="60"></td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="https://www.paypal.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.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

 

I have submitted to the web design ppl...hope they can help

Login to Me Too

skier
Advisor
Advisor

As the code you posted appears to work fine, the issue is not with the PayPal code.   You would need to have someone else troubleshoot your issue at this point.

 

Regards,

 

skier

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.