Add to Cart Button with Options Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I'm having trouble with an Add to Cart button that has product options/variations. The form works without the options but not with. I can't figure out where I'm tripping up. I've compared my code with the code supplied by the button generator and it seems to be identical. Any help is appreciated!
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="business" value="email goes here"> <input type="hidden" name="lc" value="AU"> <input type="hidden" name="item_name" value="Product Title"> <input type="hidden" name="item_number" value="999"> <input type="hidden" name="button_subtype" value="products"> <input type="hidden" name="no_note" value="0"> <input type="hidden" name="shipping" value="0"> <input type="hidden" name="add" value="1"> <input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_SM.gif:NonHostedGuest"> <input type="hidden" name="on1" value="Size"> <label for="os1">Size</label> <select name="os1" required=""> <option value="" disabled="">Make a selection</option> <option value="4" x 11.5"">4" x 11.5" – $1.00</option> <option value="8" x 20"">8" x 20" – $10.50</option> </select> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="option_select0" value="4" x 11.5""> <input type="hidden" name="option_amount0" value="1.00"> <input type="hidden" name="option_select1" value="8" x 20""> <input type="hidden" name="option_amount1" value="10.50"> <input type="hidden" name="option_index" value="0"> <input type="hidden" name="on2" value="Message"> <label for="os2">Message</label> <input type="text" name="os2" maxlength="200" class="product-message"> <div class="paypal-bar"> <input type="number" name="quantity" value="1" min="1" class="product-qty 77"> <div class="product-price body-copy">$1</div> <input type="submit" name="submit" value="Add To Cart" class="product-submit" alt="Add To Cart"> </div><!--paypal-bar--> <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> </form>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ahh, I'm still scratching my head over this! I don't understand what is wrong with my button code. I've recreated this button so many times without success.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi gergs11,
Welcome to the Community Forums! Feel free to take a look around and answer other questions in the community. 🙂
If you're having an issue with the code, we have a team that can assist with this. Go to www.PayPal.com/MTS, create an account, and ask away related to technical issues that you're having. I hope everything ends up working out for you.
- Drew
PayPal_Drew
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.