Community Forums 

Main Content

Need to charge extra for size XXL's

    Sep 17 2008 14:51:07

    #1

    Robert Smith

    Join date : 2008-09-18      Posts : 21

    Hello,
    I found this code on the Mal's Demo site, and it will work perfect for me.
    http://www.mals-e.com/dm/tshirts.php

    Can someone tell me how to charge an additional amount for the size XXL's ? I need to charge $5.00 extra for the size XXL's.


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">;
    <html xmlns="http://www.w3.org/1999/xhtml">;
    <head>
    <title>Nautical Store</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link href="style/stylesheet.css" rel="stylesheet" type="text/css" />
    </head>

    <body>
    <div id="container">
    <div id="topbar">
    <ul>
    <li><a href="index.php">Home</a></li>
    <li><a href="books.php">Books</a></li>
    <li><a href="tshirts.php">T-Shirt</a></li>
    <li><a href="http://ww1.aitsafe.com/cf/review.cfm?userid=3100170&return=www.mals-e.com/dm/tshirts.php">View cart</a></li>
    </ul>
    </div>
    <div id="mainarea">
    <div id="product">
    <h1>Body Warmer</h1>
    <p class="description">Available in a choice of colors to match your boat, if you have
    one, or your car if you don't. Made from the finest quality 100% cotton knit,
    machine washable with embroidered Mal's Nautica Motif.</p>

    <p class="description">Now also available in Fluorescent Green for offshore night sailing.</p>

    <form action="http://ww1.aitsafe.com/cf/addmulti.cfm"; method="post">
    <input type="Hidden" name="price1" value="35">
    <input type="Hidden" name="price2" value="35">
    <input type="Hidden" name="price3" value="35">

    <input type="Hidden" name="return" value="www.mals-e.com/dm/tshirts.php">;
    <input type="Hidden" name="userid" value="3100170">

    <table width="70%" cellpadding="2" cellspacing="2" border="0">
    <tr>
    <td width="67" bgcolor="SILVER" valign=top></td>
    <td width="67" bgcolor="SILVER" valign=top><b>Quantity</b></td>
    <td width="125" bgcolor="SILVER" valign=top><b>Color</b></td>
    <td width="162" bgcolor="SILVER" valign=top><b>Size</b></td>
    </tr>
    <tr>
    <td rowspan="3" valign=top><img src="images/91125860.gif" width="80" height="80"></td>
    <td width="67" valign=top><input type=text name="qty1" size="3" maxlength="4"></td>
    <td width="125" valign=top>RED</td>

    <td width="162" valign=top align="right">
    <select name="product1" size="1">
    <option value="Small - Mal's Nautica T-Shirt, Red">Small
    <option value="Medium - Mal's Nautica T-Shirt, Red">Medium
    <option value="Large - Mal's Nautica T-Shirt, Red">Large
    <option value="Extra Large - Mal's Nautica T-Shirt, Red">Extra Large
    </select>
    </td>
    </tr>
    <tr>
    <td width="67" valign=top><input type=text name="qty2" size="3" maxlength="4"></td>
    <td width="125" valign=top>GRAY</td>
    <td width="162" valign=top align="right">
    <select name="product2" size="1">
    <option value="Small - Mal's Nautica T-Shirt, Navy">Small
    <option value="Medium - Mal's Nautica T-Shirt, Navy">Medium
    <option value="Large - Mal's Nautica T-Shirt, Navy">Large
    <option value="Extra Large - Mal's Nautica T-Shirt, Navy">Extra Large
    </select>
    </td>
    </tr>
    <tr>
    <td width="67" valign=top><input type=text name="qty3" size="3" maxlength="4"></td>
    <td width="125" valign=top>FLUORESCENT GREEN</td>
    <td width="162" valign=top align="right">
    <select name="product3" size="1">
    <option value="Small - Mal's Nautica T-Shirt, Fluorescent">Small
    <option value="Medium - Mal's Nautica T-Shirt, Fluorescent">Medium
    <option value="Large - Mal's Nautica T-Shirt, Fluorescent">Large
    <option value="Extra Large - Mal's Nautica T-Shirt, Florecent">Extra Large
    </select>
    </td>
    </tr>
    <tr>
    <td width="67" valign=top>&nbsp;</td>
    <td width="67" valign=top></td>
    <td width="125" valign=top></td>
    <td width="162" valign=top align="right">
    <input type="image" name="Submit" src="images/button_buynow.gif" alt="ADD TO ORDER" class="small" />
    </td>
    </tr>
    </table>
    </form>
    <p>&nbsp;</p>
    <p><b>This is not a real store, it is just a demo.</b> If you you make a purchases your
    card will not be charged and you will not be sent any goods!</p>
    <p>Return to: <a href="http://www.mals-e.com">Mal's e-commerce</a></div>
    <div class="clear"></div>
    </div>
    <div class="clear"></div>
    </div>
    </div>
    </body>
    </html>



    Sep 17 2008 15:36:59

    #2

    GT

    Join date : 2008-09-18      Posts : 3256

    Hi Robert,

    Remove your price1, price2 and price3 lines.

    Now for your product, add the price into the line:
    <select name="productpr1">

    <option value="Large - Mal's Nautica T-Shirt, Red, :35.00">Large
    <option value="Extra Large - Mal's Nautica T-Shirt, Red, :40.00">Extra Large

    Change all product2 etc to productpr2 etc.

    Let us know if that works for you.

    Mals forms: http://www.tne.co.uk/2006/mals/

    Having trouble with a form or need one building?
    Fast turnaround, but I do charge :)

    Mal's Forms / Scripts and the syntax are here.




    Sep 18 2008 03:34:08

    #3

    Bob

    Join date : 2008-09-18      Posts : 21

    http://www.sweatshirtsusa.com/page/page/4166847.htm

    My test page is above. I've been at this all day and I've got it setup, but it will not work. I've got 12 colors and the cart will not accept an order for more than 3. Also, some of the colors work, some don't. I'd love to get this working as it is exactly what I want. Any help would be greatly appreciated!

    <form action="http://ww8.aitsafe.com/cf/addmulti.cfm"; method="post">
    <input type="hidden" name="return" value="www.sweatshirtsusa.com/home.html"; /> <input type="hidden" name="userid" value="A4161736" />
    <table cellspacing="2" cellpadding="2" width="70%" border="0">
    <tbody>
    <tr>
    <td valign="top" width="67" bgcolor="#c0c0c0">&nbsp;</td>
    <td valign="top" width="67" bgcolor="#c0c0c0"><b>Quantity</b></td>
    <td valign="top" width="125" bgcolor="#c0c0c0"><b>Color</b></td>
    <td valign="top" width="162" bgcolor="#c0c0c0"><b>Size</b></td>
    </tr>
    <tr>
    <td valign="top" rowspan="3"><img height="80" alt="" width="80" src="/i//wek_logo80x80.jpg" /></td>
    <td valign="top" width="67"><input maxlength="4" size="3" name="qty1" type="text" /></td>
    <td valign="top" width="125">Barn Red</td>
    <td valign="top" align="right" width="162"><select size="1" name="productpr1">
    <option value="S/M - Wek Weekender Closeout, Barn Red,:24.50" selected="selected">S/M</option>
    <option value="L/XL - Wek Weekender Closeout, Barn Red,:24.50">L/XL</option>
    <option value="XXL - Wek Weekender Closeout, Barn Red,:29.50">XXL $29.50</option>
    <option value="3XL - Wek Weekender Closeout, Barn Red,:29.50">3XL $29.50</option>
    </select></td>
    </tr>
    <tr>
    <td valign="top" width="67"><input maxlength="4" size="3" name="qty2" type="text" /></td>
    <td valign="top" width="125">Chamois</td>
    <td valign="top" align="right" width="162"><select size="1" name="productpr2">
    <option value="S/M - Wek Weekender Closeout, Chamois,:24.50" selected="selected">S/M</option>
    <option value="L/XL - Wek Weekender Closeout, Chamois,:24.50">L/XL</option>
    <option value="XXL - Wek Weekender Closeout, Chamois,:29.50">XXL $29.50</option>
    <option value="3XL - Wek Weekender Closeout, Chamois,:29.50">3XL $29.50</option>
    </select></td>
    </tr>
    <tr>
    <td valign="top" width="67"><input maxlength="4" size="3" name="qty3" type="text" /></td>
    <td valign="top" width="125">White</td>
    <td valign="top" align="right" width="162"><select size="1" name="productpr3">
    <option value="S/M - Wek Weekender Closeout, White,:24.50" selected="selected">S/M</option>
    <option value="L/XL - Wek Weekender Closeout, White,:24.50">L/XL</option>
    <option value="XXL - Wek Weekender Closeout, White,:29.50">XXL $29.50</option>
    <option value="3XL - Wek Weekender Closeout, White,:29.50">3XL $29.50</option>
    </select></td>
    </tr>
    <tr>
    <td valign="top" rowspan="3"><img height="80" alt="" width="80" src="/i//wek_logo80x80.jpg" /></td>
    <td valign="top" width="67"><input maxlength="4" size="3" name="qty3" type="text" /></td>
    <td valign="top" width="125">Sage</td>
    <td valign="top" align="right" width="162"><select size="1" name="productpr4">
    <option value="S/M - Wek Weekender Closeout, Sage,:24.50" selected="selected">S/M</option>
    <option value="L/XL - Wek Weekender Closeout, Sage,:24.50">L/XL</option>
    <option value="XXL - Wek Weekender Closeout, Sage,:29.50">XXL $29.50</option>
    <option value="3XL - Wek Weekender Closeout, Sage,:29.50">3XL $29.50</option>
    </select></td>
    </tr>
    <tr>
    <td valign="top" width="67"><input maxlength="4" size="3" name="qty3" type="text" /></td>
    <td valign="top" width="125">Black</td>
    <td valign="top" align="right" width="162"><select size="1" name="productpr5">
    <option value="S/M - Wek Weekender Closeout, Black,:24.50" selected="selected">S/M</option>
    <option value="L/XL - Wek Weekender Closeout, Black,:24.50">L/XL</option>
    <option value="XXL - Wek Weekender Closeout, Black,:29.50">XXL $29.50</option>
    <option value="3XL - Wek Weekender Closeout, Black,:29.50">3XL $29.50</option>
    </select></td>
    </tr>
    <tr>
    <td valign="top" width="67"><input maxlength="4" size="3" name="qty3" type="text" /></td>
    <td valign="top" width="125">Denim</td>
    <td valign="top" align="right" width="162"><select size="1" name="productpr6">
    <option value="S/M - Wek Weekender Closeout, Denim,:24.50" selected="selected">S/M</option>
    <option value="L/XL - Wek Weekender Closeout, Denim,:24.50">L/XL</option>
    <option value="XXL - Wek Weekender Closeout, Denim,:29.50">XXL $29.50</option>
    <option value="3XL - Wek Weekender Closeout, Denim,:29.50">3XL $29.50</option>
    </select></td>
    </tr>
    <tr>
    <td valign="top" rowspan="3"><img height="80" alt="" width="80" src="/i//wek_logo80x80.jpg" /></td>
    <td valign="top" width="67"><input maxlength="4" size="3" name="qty1" type="text" /></td>
    <td valign="top" width="125">Midnight</td>
    <td valign="top" align="right" width="162"><select size="1" name="productpr7">
    <option value="S/M - Wek Weekender Closeout, Midnight,:24.50" selected="selected">S/M</option>
    <option value="L/XL - Wek Weekender Closeout, Midnight,:24.50">L/XL</option>
    <option value="XXL - Wek Weekender Closeout, Midnight,:29.50">XXL $29.50</option>
    <option value="3XL - Wek Weekender Closeout, Midnight,:29.50">3XL $29.50</option>
    </select></td>
    </tr>
    <tr>
    <td valign="top" width="67"><input maxlength="4" size="3" name="qty1" type="text" /></td>
    <td valign="top" width="125">Grape</td>
    <td valign="top" align="right" width="162"><select size="1" name="productpr8">
    <option value="S/M - Wek Weekender Closeout, Grape,:24.50" selected="selected">S/M</option>
    <option value="L/XL - Wek Weekender Closeout, Grape,:24.50">L/XL</option>
    <option value="XXL - Wek Weekender Closeout, Grape,:29.50">XXL $29.50</option>
    <option value="3XL - Wek Weekender Closeout, Grape,:29.50">3XL $29.50</option>
    </select></td>
    </tr>
    <tr>
    <td valign="top" width="67"><input maxlength="4" size="3" name="qty1" type="text" /></td>
    <td valign="top" width="125">Green Tea</td>
    <td valign="top" align="right" width="162"><select size="1" name="productpr9">
    <option value="S/M - Wek Weekender Closeout, Green Tea,:24.50" selected="selected">S/M</option>
    <option value="L/XL - Wek Weekender Closeout, Green Tea,:24.50">L/XL</option>
    <option value="XXL - Wek Weekender Closeout, Green Tea,:29.50">XXL $29.50</option>
    <option value="3XL - Wek Weekender Closeout, Green Tea,:29.50">3XL $29.50</option>
    </select></td>
    </tr>
    <tr>
    <td valign="top" rowspan="3"><img height="80" alt="" width="80" src="/i//wek_logo80x80.jpg" /></td>
    <td valign="top" width="67"><input maxlength="4" size="3" name="qty1" type="text" /></td>
    <td valign="top" width="125">Safari</td>
    <td valign="top" align="right" width="162"><select size="1" name="productpr10">
    <option value="S/M - Wek Weekender Closeout, Safari,:24.50" selected="selected">S/M</option>
    <option value="L/XL - Wek Weekender Closeout, Safari,:24.50">L/XL</option>
    <option value="XXL - Wek Weekender Closeout, Safari,:29.50">XXL $29.50</option>
    <option value="3XL - Wek Weekender Closeout, Safari,:29.50">3XL $29.50</option>
    </select></td>
    </tr>
    <tr>
    <td valign="top" width="67"><input maxlength="4" size="3" name="qty1" type="text" /></td>
    <td valign="top" width="125">Peach</td>
    <td valign="top" align="right" width="162"><select size="1" name="productpr11">
    <option value="S/M - Wek Weekender Closeout, Peach,:24.50" selected="selected">S/M</option>
    <option value="L/XL - Wek Weekender Closeout, Peach,:24.50">L/XL</option>
    <option value="XXL - Wek Weekender Closeout, Peach,:29.50">XXL $29.50</option>
    <option value="3XL - Wek Weekender Closeout, Peach,:29.50">3XL $29.50</option>
    </select></td>
    </tr>
    <tr>
    <td valign="top" width="67"><input maxlength="4" size="3" name="qty1" type="text" /></td>
    <td valign="top" width="125">Pimento</td>
    <td valign="top" align="right" width="162"><select size="1" name="productpr12">
    <option value="S/M - Wek Weekender Closeout, Pimento,:24.50" selected="selected">S/M</option>
    <option value="L/XL - Wek Weekender Closeout, Pimento,:24.50">L/XL</option>
    <option value="XXL - Wek Weekender Closeout, Pimento,:29.50">XXL $29.50</option>
    <option value="3XL - Wek Weekender Closeout, Pimento,:29.50">3XL $29.50</option>
    </select></td>
    </tr>

    <tr>
    <td valign="top" width="67">&nbsp;</td>
    <td valign="top" width="67">&nbsp;</td>
    <td valign="top" width="125">&nbsp;</td>
    <td valign="top" align="right" width="162">&nbsp;</td>
    <td><input type="submit" value="Buy Now!" /></td>
    </tr>
    </tbody>
    </table>
    </form>



    Sep 18 2008 03:38:41

    #4

    Debbie Q

    Join date : 2008-09-18      Posts : 5005

    your qty field numbers are not matching your productpr numbers. Make sure you have qty fields ranging from qty1-qty12 matching each of your product fields

    Debbie Q

    Mal's Support: www.mals-e.com/support.php
    GT's Forms and examples: www.malsforms.com
    Helpful java scripts: www.gemasana.com/mals
    Shipping help documents: www.stoner.org.uk/mals

    My Create-A-Book Publishing - mycreateabook.com
    Personalized Books, Music CDs and Gifts for all ages and occasions.

    Please help me out and share my site on your networks.