Community Forums 

Main Content

Re:Can I have an 'Add all to cart' function?

    Dec 31 2010 04:39:24

    #1

    pcguy

    Join date : 2008-09-18      Posts : 130

    you can do something like this.

    <form style="font-family: Verdana;"
    action="http://ww5.aitsafe.com/cf/addmulti.cfm"; method="post"><input
    name="userid" value="78152418" type="hidden"><input
    name="nocart" type="hidden"><input name="return" value="bulkactives.com/ppfquickcart1.htm" type="hidden">
    <table style="border-collapse: collapse; width: 538px;" border="1" bordercolor="#b8952e" cellpadding="3" cellspacing="0">
    <tbody>

    <tr>
    <td style="text-align: center; width: 242px;"><span style="font-size: 13px; font-weight: bolder;">Product</span></td>
    <td style="text-align: center; width: 208px;"><span style="font-size: 13px; font-weight: bolder;">Select Weight</span></td>
    <td style="width: 74px; text-align: center;"><span style="font-size: 13px; font-weight: bolder;">Add<br>
    Quantity</span></td>
    </tr>
    <tr>
    <td style="width: 242px;"><span style="font-family: verdana; font-size: 12px; font-weight: bolder;">
    <a target="_self" href="http://www.bulkactives.com/allantoin.htm">Allantoin</a></span></td>;
    <td style="width: 208px;">
    <select name="productpr1" size="1">
    <option selected="selected" value="Allantoin 30g:3.35:55">30g / 1.06oz US$3.35</option>
    </select>

    </td>
    <td style="width: 74px; text-align: center;"><input name="qty1" size="2"></td>
    </tr>
    <tr>
    <td style="width: 242px;"><span style="font-family: verdana; font-size: 12px; font-weight: bolder;">
    <a target="_self" href="http://www.bulkactives.com/ala.htm">Alpha Lipoic Acid (RS-ALA)</a></span></td>
    <td style="width: 208px;">

    <select name="productpr2" size="1">
    <option selected value="">Sold Out</option>
    </select>
    </td>
    <td style="width: 74px; text-align: center;"><input name="qty2" size="2"></td>
    </tr>
    <tr>

    <td style="width: 242px;"><span style="font-family: verdana; font-size: 12px; font-weight: bolder;">
    <a target="_self"
    href="http://www.bulkactives.com/ascorbicacid.htm">L-ascorbic Acid</a></span></td>
    <td style="width: 208px;">
    <select name="productpr3" size="1">
    <option selected value="L-ascorbic Acid 30g:4.50:35">30g / 1.06oz US$4.50</option>
    </select>
    </td>
    <td style="width: 74px; text-align: center;"><input name="qty3" size="2"></td>

    </tr>
    <tr>
    <td style="width: 242px;"><span style="font-family: verdana; font-size: 12px; font-weight: bolder;">
    <a target="_self" href="http://www.bulkactives.com/ascorbyltetraisopalmitate.htm">Ascorbyl Tetraisopalmitate</a></span></td>
    <td style="width: 208px;">
    <select name="productpr4" size="1">
    <option selected="selected" value="">Select weight</option>

    <option value="Ascorbyl Tetraisopalmitate 14g:25.85:24">14g / 0.49oz US$25.85</option>
    <option value="Ascorbyl Tetraisopalmitate 50g:76.25:65">50g / 1.76oz US$76.25</option>
    <option value="Ascorbyl Tetraisopalmitate 1000g:1322.00:1250">1 kg / 35.27oz US$1367.00</option>
    </select>
    </td>
    <td style="width: 74px; text-align: center;"><input name="qty4" size="2"></td>
    </tr>
    <tr>

    <td style="width: 242px;"><span style="font-family: Verdana; font-size: 12px; font-weight: bolder;">
    <a target="_self" href="http://www.bulkactives.com/silymarin.htm">Silymarin</a></span></td>;
    <td style="width: 208px;">
    <select name="productpr39" size="1">
    <option selected="selected" value="Silymarin 30g:4.30:35">30g / 1.06oz US$4.30</option>
    </select>
    </td>
    <td style="width: 74px; text-align: center;"><input name="qty39" size="2"></td>

    </tr>

    <tr>
    <td colspan="2" rowspan="1" style="width: 208px;"><br>

    </td>
    <td style="width: 74px;">
    <input style="background-color: #9DB265; color: rgb(0, 0, 0); font-family: Verdana; font-weight: bolder; font-size: 8pt;" type="submit" value="Buy Now" onclick="alert('Items have been added to your cart\n\nPlease continue to shop or\nClick view cart to checkout');">
    </tr>

    </tbody>

    </table>
    </form>