by cyoung » Thu Oct 25, 2018 9:41 am
You would need to edit the DEFINE SUBPRODUCT section in whichever template your subproducts are using. Typically the template the subproducts are using is the same template that all products are using, however with custom templates or specialty templates that are built into ShopSite a different subproduct template is specified. The BB-** themes have variables in their product templates to display the subproducts with either radio buttons, checkboxes or in a pull down menu. Most themes display the subproducts with radio buttons by default. If your subproducts are displayed with radio buttons currently, then you will want to edit the BB-Product.sst template (this is the default BB product template which has the default subproduct display). To edit this template go to Merchandising > Custom Templates > Page/Product > Copy ShopSite Template. Make a copy of the BB-Product.sst template, name it whatever you want. Save. Then make a copy of your copy and rename it the exact same name as the original. This will make it so that your copy overrides the original. Now you can edit the template.
In the template, on the 5th line of so, you will see the following code.
[-- ELSE --]<span class="bb-sub"><input type="[-- VAR.SubProductType --]" name="itemnum" value="[-- PRODUCT.RecordNumber --]"> .... then a whole bunch more code after this.
Add in the code in bold-blue below.
[-- ELSE --]<span class="bb-sub"><input type="[-- VAR.SubProductType --]" name="itemnum" value="[-- PRODUCT.RecordNumber --]"> Qty: <input type="text" value="1" name="[-- PRODUCT.RecordNumber --]:qnty">