This is a discussion on "Select choice in PayPal" within the Web Page Design section. This forum, and the thread "Select choice in PayPal are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Select choice in PayPal
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Hi. I want visitors to be able to select a choice of colours for the same item i'm selling. I've placed the select box on screen and it has two values (red, olive) but how do i code it so that it then adds their choice to the end of the item name in the shopping cart?
This is probably a bit of a mess, but here's code: <select name="select" size="1"> <option>Red</option> <option>Olive</option> </select> <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="image" src="http://www.ukido.com/shop/pics/add.jpg" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> <input type="hidden" name="add" value="1"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="business" value="mysales@mysite.com"> <input type="hidden" name="item_name" value="Inflatable Dart Board"> <input type="hidden" name="amount" value="22.00"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="currency_code" value="GBP"> <input type="hidden" name="bn" value="PP-ShopCartBF"> </form> Presumably it's got something to do with adding the option or selection to the end of the item_name value? Thanks in advance! |
|
|
|
|||
|
Re: Select choice in PayPal
|
|
|||
|
Re: Select choice in PayPal
I'm afraid that doesn't work.
I replaced the select code with what u gave me and took out: <input type="hidden" name="item_name" value="Inflatable Dart Board"> Is that what u meant? Now, i don't get any title at all in the shopping cart. I tried: <input type="hidden" name="item_name"> But no. Could you be more precise, maybe give me the entire segment of code as it should be. Thanks. |
|
|||
|
Re: Select choice in PayPal
|
|
|||
|
Re: Select choice in PayPal
Great, it works! Thanks very much Pheonix.
|
|
|||
|
Re: Select choice in PayPal
Me again.
Now, I've got the same item in 3 different sizes and 3 different prices. How do I make it change to the corresponding price please? |
|
|||
|
Re: Select choice in PayPal
I was sure, someone else, and then I had responded to this thread...
Anyways, I'm not sure if paypal has a cirtain way of doing it, but if they don't I would do what I suggested in my first post. Have a page where the user selects their options/products and then submits that from to your server. Your server then processes it, and generates the paypal form with all the feilds hidden, with a message like "You have selected the big red ball, press "confirm" if this is correct" or something like that... then have a button that submits the form to paypal when they click it. |
|
|||
|
Re: Select choice in PayPal
Yes we responded to this thread but because of data loss its now gone.
You need to post the variables to a confirmation form which stores them. You dont need to post the actual details of the item to paypal as all you need there is the price. The details you can send to a database when the order is complete. |
|
|||
|
Re: Select choice in PayPal
Doesn't Paypal use the product as a "description"? If it does, it probaly would still be useful to send it along, that way it would be easyer to note for both parties what that specific order was about,
And yeah, I read the announcments after I made that post >.< |
|
|||
|
Re: Select choice in PayPal
Ye i think they do have some form of a description.
And the data loss has ruined my life :P |
|
|||
|
Re: Select choice in PayPal
Better make up for it in a wash of spam posts! j/k
|
|
|||
|
Re: Select choice in PayPal
ye spam
|
|
|||
|
Re: Select choice in PayPal
Although your method sounds good, I'm more inclined to do it my way, which is to have a different button for each individual item. The reason being, it's very important imo to have as fewer clicks as possible in the purchase method. Plus, I can't code variables.
|
![]() |
| Tags |
| select, choice, paypal |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2 Drop down list - auto select depending on choice from first list | ciaranleeper | JavaScript Forum | 0 | Mar 26th, 2008 10:38 |
| chained select box dependable select | thenamenoonehastaken | JavaScript Forum | 0 | Feb 8th, 2008 05:49 |
| IE 7 ignoring css fonts choice | ukgeoff | Web Page Design | 5 | Oct 24th, 2006 16:15 |
| Forum Choice | natcolley | Introduce Yourself | 4 | Oct 1st, 2005 11:25 |
| Make your choice for 20/10/03! | Webforumz Staff | Entry, Nominations and Voting | 0 | Oct 16th, 2003 09:00 |