This is a discussion on "I could use a little help" within the JavaScript Forum section. This forum, and the thread "I could use a little help are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
I could use a little help
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
I could use a little help
I am building an ecommerce website I currently have a drop down box for the user to select a color. I need some script to integrate this into a paypal shopping cart. I other words when they select there color it does nothing I want it to go to the shopping cart an tell me what color they ordered. Any help would be great
|
|
|
|
|||
|
Re: I could use a little help
Difficult to respond without seeing the page and the code you are using. |
|
|||
|
Re: I could use a little help
here is the code for the drop down box
<form name="color"><div align="left"> <select name="select1" size="1"> <option>Black</option> <option>Bronze</option> <option>Green</option> <option>Pewter</option> </select></div></form> Here is the code for the add to cart button. what i am looking to have happen is when they select there color and click add to cart it carries the color trough to the shopping cart page <Form method="post" action="https://www.paypal.com/cgi-bin/webscr" target="paypal"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="business" value="brett@gardendiscounters.com"> <input type="hidden" name="item_name" value="Round 360 Chiminea"> <input type="hidden" name="item_number" value="00312"> <input type="hidden" name="amount" value="184.99"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="shipping" value=""> <input type="hidden" name="shipping2" value=""> <input type="hidden" name="handling_cart" value=""> <input type="hidden" name="bn" value="ButtonFactory.Tripod.001"> <input type="image" name="add" src="https://www.paypal.com/images/x-click-but22.gif"> </form> |
|
||||
|
Re: I could use a little help
Can you use a server-side language such as ASP or PHP?
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
|||
|
Re: I could use a little help
Sorry my host will only let me use HTML or Java Script
|
|
||||
|
Re: I could use a little help
Some brownies would be nice
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Last edited by spinal007; Sep 5th, 2006 at 17:18. |
|
||||
|
Re: I could use a little help
Would it be easier to use a different item number for each color?
|
|
||||
|
Re: I could use a little help
course, but without any server-side coding, it's not ideal to duplicate every other field in the form 6+ times...
and it would be a pain to change prices, etc... I think it's a better "long term" solution
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
|||
|
Re: I could use a little help
I tried this code several different was and still nothing What have I done wrong?
|
|
||||
|
Re: I could use a little help
I don't know what you've done wrong because I can't see what you've done...
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
![]() |
| Tags |
| could, use, little, help |
| Thread Tools | |
|
|