Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Web Site Functionality _ html code help for online shopping cart

Posted by: polkadots Oct 15 2006, 08:10 PM

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.

Posted by: pandy Oct 15 2006, 09: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?

Posted by: Brian Chandler Oct 16 2006, 12:01 AM

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?




Posted by: polkadots Oct 16 2006, 08:03 AM

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!

Posted by: pandy Oct 16 2006, 05:09 PM

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?

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)