|
Page Template Tips
Product Template Tips
:: Large Image PopUp
:: Subproducts in Pull Down :: Subproducts with Checkboxes :: Subproducts w/ Radio Buttons :: Customer Text Entry :: Divided Customer Text Entry :: More Info Product Cross-Sell Cart Template Tips
|
Subproducts Displayed with CheckboxesIf 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. 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
|





Shopping Cart Software