Combining two products into a single add to cart button
This example requires that you do not have any special product properties, and do now allow quantities to entered in the button.
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 all products to the shoppers basket.
See also:
Creating an order form using multiple buttons
Button One
<form method="post" style="margin-bottom: 0" action="https://hyelighting.cartmanager.net/cgi-bin/cart.cgi">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" align="center">
<input type="hidden" name="AddItem" value="demo|TestONE|12345|1|||prompt|1">
<input type="image" name="AddGraphic" border="0" alt="Add To Cart" src="https://hyelighting.cartmanager.net/images2/themes/two_tone/add.gif">
</td>
</tr>
</table>
</form>
Button Two
<form method="post" style="margin-bottom: 0" action="https://hyelighting.cartmanager.net/cgi-bin/cart.cgi">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" align="center">
<input type="hidden" name="AddItem" value="demo|TestTWO|6789|1|||prompt|1">
<input type="image" name="AddGraphic" border="0" alt="Add To Cart" src="https://hyelighting.cartmanager.net/images2/themes/two_tone/add.gif">
</td>
</tr>
</table>
</form>
Combined
<form method="post" style="margin-bottom: 0" action="https://hyelighting.cartmanager.net/cgi-bin/cart.cgi">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" align="center">
<input type="hidden" name="AddItem" value="demo|TestONE|12345|1|||prompt|1">
<input type="hidden" name="AddItem" value="demo|TestTWO|6789|1|||prompt|1">
<input type="image" name="AddGraphic" border="0" alt="Add To Cart" src="https://hyelighting.cartmanager.net/images2/themes/two_tone/add.gif">
</td>
</tr>
</table>
</form> |