Index | - | FAQ - Misc |
When you create a basic add button using our button builder you will get code that looks like this. <form method="post" style="margin-bottom: 0" action="https://hyelighting.cartmanager.net/cgi-bin/cart.cgi"> <input type="hidden" name="AddItempartno" value="demo|product description|4.95|1|partno||prompt|4" > <input type="submit" value="Add To Cart" alt="Add to cart"/> </form>
To change it to a checkbox, simply make this minor text change to the code, and add this line. <form method="post" style="margin-bottom: 0" action="https://hyelighting.cartmanager.net/cgi-bin/cart.cgi"> <input type="hidden" name="AddItemNull" value="demo|" > <input type="checkbox" name="AddItempartno" value="demo|product description|4.95|1|partno||prompt|4" > <input type="submit" value="Add To Cart" alt="Add to cart"/> </form>
If you would like to combine multiple products into a large listing then simply copy the "checkbox" line from each button so that your code looks like this <form method="post" style="margin-bottom: 0" action="https://hyelighting.cartmanager.net/cgi-bin/cart.cgi"> <input type="hidden" name="AddItemNull" value="demo|" > <input type="checkbox" name="AddItempartno" value="demo|product description|4.95|1|partno||prompt|4" > <input type="checkbox" name="AddItempartno2" value="demo|another description|6.95|1|partno2||prompt|3.1" > <input type="checkbox" name="AddItempartno3" value="demo|yet another description|8.95|1|partno3||prompt|4.5" > <input type="submit" value="Add To Cart" alt="Add to cart"/> </form>
Finally, if you want text next to each checkbox add it like so <form method="post" style="margin-bottom: 0" action="https://hyelighting.cartmanager.net/cgi-bin/cart.cgi"> <input type="hidden" name="AddItemNull" value="demo|" > <input type="checkbox" name="AddItempartno" value="demo|product description|4.95|1|partno||prompt|4" >product description<br> <input type="checkbox" name="AddItempartno2" value="demo|another description|6.95|1|partno2||prompt|3.1" >another description<br> <input type="checkbox" name="AddItempartno3" value="demo|yet another description|8.95|1|partno3||prompt|4.5" >yet another description<br> <input type="submit" value="Add To Cart" alt="Add to cart"/> </form>
|