|
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 Listed In A Pull Down MenuIf you would like to display your subproducts in a pull down menu 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 in a pull down menu. If you would just want to include the product name in the pull down menu, 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 pull down menu 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 product selected in the pull down menu gets 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