Paypal : How to add multiple items in one button
Hi, I was wondering if this was possible with PayPal cart or if I need to write up some JavaScript etc.
So, I know when you use the _cart command and _upload you get item_x and amount_x etc, but when i tried to use it with just _cart and no _upload I get some error stating i need to enter in an amount.
Does PayPal simply only allow you to add one item per button click? I would just use the 3rd party cart one but I need to be able to update the quantity within the cart.
Here is what I’m trying to do: I have four products, and in one ordering section for ease of use I decided to have 4 input boxes and then an add to cart button. I then have a PHP script that will process the amount they put in, apply the correct price information, generate a form and submit it to paypal via javascript. I also have other sections on the site that just have one button per entry box and thoose also need to be updated within the same cart.
I’m not afraid of doing advanced things in PHP and JavaScript, I am just new to the PayPal cart ( that my client wanted me to use ) and I just don’t know all of its little quriks.
The only thing I can think of is have four submits of a page, but once you submit the form you go to paypal…
here is some code:
<form target="paypal" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> <input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> <img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> <input type="hidden" name="add" value="1"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="business" value="seller_1186539196_biz@stevenheller.net"> <input type="hidden" name="item_name_1" value="Set of Four" /> <input type="hidden" name="amount_1" value="24.00" /> <input type="hidden" name="item_name_2" value="Color Placemat" /> <input type="hidden" name="amount_2" value="8.00" /> <input type="hidden" name="quantity_2" value="3" /> <input type="hidden" name="item_name_3" value="Fundraiser Level II - $10/set" /> <input type="hidden" name="amount_3" value="10.00" /> <input type="hidden" name="quantity_3" value="68" /> <input type="hidden" name="item_name_4" value="Fundraiser Level II - 68 sets @ $10/set" /> <input type="hidden" name="amount_4" value="680.00" /> <input type="hidden" name="quantity_4" value="1" /> </form>
Tags: cart, javascript, paypal, php


**** Info: In Kürze gibt es ein erstes Update der n-tv mobil Applikation. Der Startvorgang wird durch eine überarbeitete Startseite erheblich beschleunig...
Finde heraus, ob du über das Thema Sex wirklich Bescheid weißt.
Anhand dieses Tests kannst du überprüfen, ob du tatsächlich so viel über Sex weißt,...
Du kannst den tollsten virtuellen Hund entwickeln und ihn deinen Freunden und der ganzen Welt zeigen!
Adoptiere deinen eigenen streichelbaren, liebenswer...
PLEASE NOTE: This is the free version of the Unblock Me game with a limited puzzles and difficult levels. The following features are available only in the ...
Mit MobileTV von T-Mobile haben Sie beste TV-Unterhaltung jederzeit auf Ihrem iPhone 3G/3GS.
T-Mobile bietet Ihnen eine breite Auswahl an Kanälen an:
? d...
Unter dem Motto ?Entdecke Deinen Ort? bietet DasÖrtliche nun auch auf dem iPhone die gewerblichen und privaten Verzeichniseinträge Deutschlands in gewohn...
Sarkasmus pur...
Deutschland steckt in der Krise und das iPhone verkauft sich wie geschnitten Brot.
Da liegt es doch nahe, sich auf dem iPhone anzusehen,...
Roll-out with the FREE TRANSFORMERS digital BUMBLEBEE action figure! Touch, swipe and drag Bumblebee to change from vehicle to robot mode and back again. P...
Connect two iPhones 3G via Bluetooth to build an endless racing track.
The Endless Racing Game is one of the first multiplayer games, where the game acti...
Think you have a good vocabulary? Take on your iPhone or a friend in this chalkboard classic and find out how good your vocabulary really is.
Hangman Fre...