Select choice in PayPal

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 16th, 2005, 00:37
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 308
Thanks: 1
Thanked 0 Times in 0 Posts
Question Select choice in PayPal

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!
Reply With Quote

  #2 (permalink)  
Old Dec 16th, 2005, 01:43
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Select choice in PayPal

HTML: Select all
<select name="item_name" size="1">
<option value="Inflatable Dart Board (Red)" selected="selected">Red</option>
<option value="Inflatable Dart Board (Olive)">Olive</option>
</select>
Would be the simplest and quickest way of doing it, then remove your hidden field. However I probably would do it where they select the item, hit "pay" process the item name, then send them to a page that has a confirm button, and continue from there.
Reply With Quote
  #3 (permalink)  
Old Dec 16th, 2005, 03:44
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 308
Thanks: 1
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #4 (permalink)  
Old Dec 16th, 2005, 03:52
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Select choice in PayPal

HTML: Select all
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<select name="item_name" size="1">
<option value="Inflatable Dart Board (Red)" selected="selected">Red</option>
<option value="Inflatable Dart Board (Olive)">Olive</option>
</select>
<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="EMAIL REMOVED - Send PM to This User Instead">
<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>
Reply With Quote
  #5 (permalink)  
Old Dec 16th, 2005, 11:25
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 308
Thanks: 1
Thanked 0 Times in 0 Posts
Re: Select choice in PayPal

Great, it works! Thanks very much Pheonix.
Reply With Quote
  #6 (permalink)  
Old Dec 16th, 2005, 11:50
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 308
Thanks: 1
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #7 (permalink)  
Old Dec 19th, 2005, 15:33
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #8 (permalink)  
Old Dec 19th, 2005, 15:37
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
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.
Reply With Quote
  #9 (permalink)  
Old Dec 19th, 2005, 15:40
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
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 >.<
Reply With Quote
  #10 (permalink)  
Old Dec 19th, 2005, 15:41
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
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
Reply With Quote
  #11 (permalink)  
Old Dec 19th, 2005, 15:42
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Select choice in PayPal

Better make up for it in a wash of spam posts! j/k
Reply With Quote
  #12 (permalink)  
Old Dec 19th, 2005, 15:43
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: Select choice in PayPal

ye spam
Reply With Quote
  #13 (permalink)  
Old Dec 19th, 2005, 20:47
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 308
Thanks: 1
Thanked 0 Times in 0 Posts
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.
Reply With Quote
Reply

Tags
select, choice, paypal

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 17:53.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43