The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> html code help for online shopping cart
polkadots
post Oct 15 2006, 08:10 PM
Post #1





Group: Members
Posts: 2
Joined: 15-October 06
Member No.: 452



I have an html code for a Paypal shopping cart. See below:

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<table><tr><td><input type="hidden" name="on0" value="Personalize -- Add up to 12 lines of text">Personalize -- Add up to 12 lines of text</td><td><input type="text" name="os0" maxlength="200"></td></tr><tr><td><input type="hidden" name="on1" value="Typestyle">Typestyle</td><td><select name="os1"><option value="American Writer">American Writer<option value="Californian Italic">Californian Italic<option value="Christine">Christine<option value="Coronet">Coronet<option value="Curlz">Curlz<option value="Fiddlestix">Fiddlestix<option value="Footlight">Footlight<option value="French Script">French Script<option value="Hadfield">Hadfield<option value="Harrington">Harrington</select>
</td></tr></table><input type="image" src="https://www.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.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="amfralish@yahoo.com">
<input type="hidden" name="item_name" value="Amy Adele Pink Castle Invitation">
<input type="hidden" name="item_number" value="lc304">
<input type="hidden" name="amount" value="2.00">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="return" value="http://www.polkadotspaper.com/confirmationpg.html">
<input type="hidden" name="cn" value="Comments">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-ShopCartBF">
</form>

However, there are a couple of things that I need to be different.

**I think it is "on0" - where I have "Personalize -- Add up to 12 lines of text" -- I am currently only allowed a maximum of 200 characters. I need about 800.

**for "on1" where I have "Typestyle" It is only letting me have 10 drop-down menu items, but I need about 50.

**The thing I need the most -- Right now, I am only given the option of entering in one price and letting a customer choose their quantity. I need to be able to have a drop down menu that includes the quantity and price. For example, the customer can choose the following
25 = $50
50 = $83
75 = $114
100 = $139
125 = $160
150 = $185
200 = $239
250 = $290
300 = $338
350 = $382
Here is link that has the current shopping cart (that I don't like). http://www.polkadotspaper.com/aapinkcastleinvite.html

If anyone can help me figure this out, I would greatly appreciate it.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Oct 15 2006, 09:50 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



QUOTE(polkadots @ Oct 16 2006, 03:10 AM) *

**I think it is "on0" - where I have "Personalize -- Add up to 12 lines of text" -- I am currently only allowed a maximum of 200 characters. I need about 800.

You shouldn't use maxlength="200" then.
CODE
<input type="text" name="os0" maxlength="200">

Also, TEXTAREA would be a better choice for that amount of text.
http://htmlhelp.com/reference/html40/forms/input.html
http://htmlhelp.com/reference/html40/forms/textarea.html

QUOTE
**for "on1" where I have "Typestyle" It is only letting me have 10 drop-down menu items, but I need about 50.

What's this "it" that's stopping you from adding more?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Oct 16 2006, 12:01 AM
Post #3


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



QUOTE(polkadots @ Oct 16 2006, 10:10 AM) *

I have an html code for a Paypal shopping cart. See below:

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<table><tr><td><input type="hidden" name="on0" value="Personalize -- Add up to 12 lines of text">Personalize -- Add up to 12 lines of text</td><td><input type="text" name="os0" maxlength="200"></td></tr><tr><td><input type="hidden" name="on1" value="Typestyle">Typestyle</td><td><select name="os1"><option value="American Writer">American Writer<option value="Californian Italic">Californian Italic<option value="Christine">Christine<option value="Coronet">Coronet<option value="Curlz">Curlz<option value="Fiddlestix">Fiddlestix<option value="Footlight">Footlight<option value="French Script">French Script<option value="Hadfield">Hadfield<option value="Harrington">Harrington</select>
</td></tr></table><input type="image" src="https://www.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.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="amfralish@yahoo.com">
<input type="hidden" name="item_name" value="Amy Adele Pink Castle Invitation">
<input type="hidden" name="item_number" value="lc304">
<input type="hidden" name="amount" value="2.00">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="return" value="http://www.polkadotspaper.com/confirmationpg.html">
<input type="hidden" name="cn" value="Comments">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-ShopCartBF">
</form>

However, there are a couple of things that I need to be different.

**I think it is "on0" - where I have "Personalize -- Add up to 12 lines of text" -- I am currently only allowed a maximum of 200 characters. I need about 800.

**for "on1" where I have "Typestyle" It is only letting me have 10 drop-down menu items, but I need about 50.

**The thing I need the most -- Right now, I am only given the option of entering in one price and letting a customer choose their quantity. I need to be able to have a drop down menu that includes the quantity and price. For example, the customer can choose the following
25 = $50
50 = $83
75 = $114
100 = $139
125 = $160
150 = $185
200 = $239
250 = $290
300 = $338
350 = $382
Here is link that has the current shopping cart (that I don't like). http://www.polkadotspaper.com/aapinkcastleinvite.html

If anyone can help me figure this out, I would greatly appreciate it.


When you give your customer a link to PayPal, this has to follow the PayPal rules (I mean the API, the interface specification). If PayPal doesn't provide a parameter so that a single link can have different prices for different quantities, then you can't do it directly.

If it's just the pricing problem, you can simply have a different link for each quantity - means repeating the form, but you can do that with a script. But if you want to have a wodge of personalised text, it really is asking too much to expect PayPal to store all the details for you. You need to keep the details of each order in a database, and have a script generate a customised PayPal link. Does your host provide PHP/MySQL or similar?



User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
polkadots
post Oct 16 2006, 08:03 AM
Post #4





Group: Members
Posts: 2
Joined: 15-October 06
Member No.: 452



QUOTE(pandy @ Oct 15 2006, 10:50 PM) *

QUOTE(polkadots @ Oct 16 2006, 03:10 AM) *

**I think it is "on0" - where I have "Personalize -- Add up to 12 lines of text" -- I am currently only allowed a maximum of 200 characters. I need about 800.

You shouldn't use maxlength="200" then.
CODE
<input type="text" name="os0" maxlength="200">

Also, TEXTAREA would be a better choice for that amount of text.
http://htmlhelp.com/reference/html40/forms/input.html
http://htmlhelp.com/reference/html40/forms/textarea.html

QUOTE
**for "on1" where I have "Typestyle" It is only letting me have 10 drop-down menu items, but I need about 50.

What's this "it" that's stopping you from adding more?


I'm using the Paypal shopping cart, so I guess the it is Paypal. Good point!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Oct 16 2006, 05:09 PM
Post #5


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



QUOTE(polkadots @ Oct 16 2006, 03:03 PM) *

I'm using the Paypal shopping cart, so I guess the it is Paypal. Good point!

Yes, I know that but do you use some kind of software on their site to generate copy-paste code that you then embed in your pages? Do they say thay can't handle more options? What happens if you manually add more?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 06:41 AM