Hi, Unregistered. | Today's Posts

T-Shirt Forums
User Name
Password

Need to Register?

Forgot Your Password?


Site Navigation




+   T-Shirt Forums > T-Shirt Selling > Ecommerce Site Design
Discuss website design for ecommerce sites, useability, navigation and other development considerations

HTML order form



 
Share This Thread Thread Tools Search this Thread
Old October 9th, 2009 Oct 9, 2009 2:51:55 PM -   #1 (permalink)
T-Shirt Lover
T-Shirt Fan

Tyrant_007's Avatar
 
Member Since: Aug 2009
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts


Default HTML order form

Hi! Does anyone happen to be gifted in HTML? I'm stuck on something stupid while setting up my page to send data to my "shopping cart". The cart needs a few simple inputs like price, product, id, etc. What I want to do is have a list of material types and have the cost associated with them. For example, a cotton shirt being $12 and a poly shirt being $17. Is there a way to take a basic dropdown and have it send two separate values?

Basic example of what I'm thinking:
<INPUT TYPE="HIDDEN" NAME="product" VALUE="x">
<INPUT TYPE="HIDDEN" NAME="price" VALUE="cost []">

<SELECT name="size []">
<OPTION value="S" > Small </OPTION>
<OPTION value="M" SELECTED > Medium </OPTION>
<OPTION value="L"> Large </OPTION>
<OPTION value="XL"> XL </OPTION>
<OPTION value="XXL"> XXL </OPTION>
</SELECT>

<SELECT name="cost []">
<OPTION value="12.00" > $12.00 - 100% Cotton </OPTION>
<OPTION value="17.00" SELECTED > $17.00 - 100% Polyester </OPTION>
<OPTION value="13.50"> $13.50 - 50/50 Poly/Cotton Blend </OPTION>
<OPTION value="15.00"> $15.00 - 65/35 Poly/Cotton Blend </OPTION>
</SELECT>

I see this passing the numerical value of the "cost" and sending it as the "price" which will then be calculated by my cart software. Now if that works, how can I pull a second value out of the same select statement to give me a "material" or "type" value of "100% cotton" for example. That way when a receipt is e-mailed, it says 'you ordered 1 quantity of the "x" shirt in medium in 100% cotton for a cost of $12'. Then have the subtotal, shipping, and total, etc.

If I'm unclear about what I'm asking, just let me know. Keep in mind that this is all example data.
 
Digg this Post!Add Post to del.icio.us Tweet about this Post!
Old October 9th, 2009 Oct 9, 2009 4:48:56 PM -   #2 (permalink)
T-Shirt Lover
T-Shirt Fan
Thread Starter

Tyrant_007's Avatar
 
Member Since: Aug 2009
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts


Default Re: HTML order form

Nevermind, I just set it up differently. I didn't realize I could have more than 1 variable for each product in the same cart addition.

Example of the style I'll end up with:

<INPUT type="Hidden" name="price1" value="12.00">
<INPUT type="Hidden" name="price2" value="17.00">
<INPUT type="Hidden" name="price3" value="13.50">
<INPUT type="Hidden" name="price4" value="15.00">

<td width="162" valign=top align="right">
<select name="product1" size="1">
<option value="Small - Badge T-Shirt, 100% Cotton">Small
<option value="Medium - Badge T-Shirt, 100% Cotton">Medium
<option value="Large - Badge T-Shirt, 100% Cotton">Large
<option value="XL - Badge T-Shirt, 100% Cotton">XL
<option value="XXL - Badge T-Shirt, 100% Cotton">XXL
</select>

<select name="product2" size="1">
<option value="Small - Badge T-Shirt, 100% Polyester">Small
<option value="Medium - Badge T-Shirt, 100% Polyester">Medium
<option value="Large - Badge T-Shirt, 100% Polyester">Large
<option value="XL - Badge T-Shirt, 100% Polyester">XL
<option value="XXL - Badge T-Shirt, 100% Polyester">XXL
</select>

<select name="product3" size="1">
<option value="Small - Badge T-Shirt, 50/50 Poly/Cotton">Small
<option value="Medium - Badge T-Shirt, 50/50 Poly/Cotton">Medium
<option value="Large - Badge T-Shirt, 50/50 Poly/Cotton">Large
<option value="XL - Badge T-Shirt, 50/50 Poly/Cotton">XL
<option value="XXL - Badge T-Shirt, 50/50 Poly/Cotton">XXL
</select>

<select name="product4" size="1">
<option value="Small - Badge T-Shirt, 65/35 Poly/Cotton">Small
<option value="Medium - Badge T-Shirt, 65/35 Poly/Cotton">Medium
<option value="Large - Badge T-Shirt, 65/35 Poly/Cotton">Large
<option value="XL - Badge T-Shirt, 65/35 Poly/Cotton">XL
<option value="XXL - Badge T-Shirt, 65/35 Poly/Cotton">XXL
</select>

A little more programming, but it works as I'd like it to on the receipt.

ProductQuantityPriceAmountSmall - Badge T-Shirt, 100% Cotton 12.0012.00
 
Digg this Post!Add Post to del.icio.us Tweet about this Post!


This is a discussion about HTML order form that was posted in the Ecommerce Site Design section of the forums.

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does anyone have a Order Form Template? Losing Freedom Offline Retail and Tradeshows 2 September 3rd, 2009 04:57 PM
Order form, Customer info form bionic Business and Finance 4 October 29th, 2007 06:19 PM
order form? Buechee Heat Press and Heat Transfers 10 April 19th, 2007 05:08 PM
question Order Form Bobbie15 Embroidery 5 February 20th, 2007 06:48 AM
Retail Order Form Capt. Jack Sparr Offline Retail and Tradeshows 6 October 11th, 2006 11:24 AM


All times are GMT -8. The time now is 04:43 PM.


Copyright 2004-2009 T-ShirtForums.com. All rights reserved.