Home   | Page   | Product   | Search   | Shopping Cart   | Gift Certificate   | Tell A Friend   | Advanced Tips

Custom Templates!

Page Template Tips
Product Template Tips
Cart Template Tips

Subproducts Displayed with Checkboxes

[-- DEFINE SUBPRODUCT --]
[-- END_DEFINE SUBPRODUCT --]
[-- PRODUCT.Name --]
[-- LOOP SUBPRODUCTS --]
[-- SUBPRODUCTS --]
[-- END_LOOP SUBPRODUCTS --]

If you would like to display your subproducts as a list of checkboxes there are two areas in the product template that you would need to edit. The DEFINE SUBPRODUCT section of the product template and the DEFINE PRODUCT section of the product template.

For the DEFINE SUBPRODUCT section you would only include the information for one subproduct with the checkbox. If you would just want to include the product name next to the checkbox, the subproduct section would look similar to the following. Note that the PRODUCT.RecordNumber is including the product itemnum which will indicate which product from the ShopSite database to add to the cart.

If you would like to include the product name and product price, the subproduct section would look similar to:

After you have setup the code for the DEFINE SUBPRODUCT section, you would need to include the LOOP SUBPRODUCT tags with the DEFINE PRODUCT section of your template where you would like the subproduct checkbox list to appear. The LOOP SUBPRODUCT tags would look similar to the following. Note that you would still need to include the add to cart form (see product add to cart) so that the products who's checkboxes are checked get added to the cart. You do not need to include the <input type="hidden" name="itemnum" value="[-- PRODUCT.RecordNumber --]"> which is part of the add to cart form.

Complete Product Template