LinkPointCart The Online Shopping Solution

Help Search our knowledge base:

Index - FAQ - Misc

 Related Items
1. Combining two products into a single add to cart button

 Details
Frequently Asked
Question (FAQ)

Document Number: 1145

Optimize for Printing
E-Mail This Link

 Feedback
This document ...
helps resolve my question or problem.
does not apply to my question or problem.
is inaccurate for my question or problem.
Creating an order form using multiple buttons

Below is an example of how to combine two or more products into a single add to cart button. Clicking on the one button will add both products to the shoppers basket.

See also:
Combining two products into a single add to cart button

Button One
<form method="post" style="margin-bottom: 0" action="https://www.linkpointcart.net/cgi-bin/cart.cgi">
<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="right">Quantity</td><td width="5">:</td>
    <td align="left"><input type="text" name="VARP1Quantity_rawtext" value="1" size="4"></td>
  </tr>
  <tr>
    <td colspan="3" align="center">
      <input type="hidden" name="AddItemP1" value="demo|TestONE|4|VARP1Quantity_rawtext|P1||prompt|1">
      <input type="submit" value="Add To Cart" alt="Add To Cart">
    </td>
  </tr>
</table>
</form>


Button Two
<form method="post" style="margin-bottom: 0" action="https://www.linkpointcart.net/cgi-bin/cart.cgi">
<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="right">Quantity</td><td width="5">:</td>
    <td align="left"><input type="text" name="VARP2Quantity_rawtext" value="1" size="4"></td>
  </tr>

  <tr>
    <td colspan="3" align="center">
      <input type="hidden" name="AddItemP2" value="demo|TestONE|4|VARP2Quantity_rawtext|P2||prompt|1">
      <input type="submit" value="Add To Cart" alt="Add To Cart">
    </td>
  </tr>
</table>
</form>


Button Combined
<form method="post" style="margin-bottom: 0" action="https://www.linkpointcart.net/cgi-bin/cart.cgi">
<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="right">Quantity</td><td width="5">:</td>
    <td align="left"><input type="text" name="VARP1Quantity_rawtext" value="1" size="4"></td>
  </tr>
  <tr>
    <td align="right">Quantity</td><td width="5">:</td>
    <td align="left"><input type="text" name="VARP2Quantity_rawtext" value="1" size="4"></td>
  </tr>

  <tr>
    <td colspan="3" align="center">
      <input type="hidden" name="AddItemP1" value="demo|TestONE|4|VARP1Quantity_rawtext|P1||prompt|1">
      <input type="hidden" name="AddItemP2" value="demo|TestONE|4|VARP2Quantity_rawtext|P2||prompt|1">
      <input type="submit" value="Add To Cart" alt="Add To Cart">
    </td>
  </tr>
</table>
</form>
Copyright © 2006-2017 LinkPointCart, All Rights Reserved. - Privacy Policy
  HACKER SAFE certified sites prevent over 99.9% of hacker crime.