[TYPO3-shop] Default Quantity = 1 ?
Franz Holzinger
franz at fholzinger.com
Sat Aug 5 12:18:24 CEST 2006
Hello Uli Linn,
>
> After searching in doku and several boards I hope I can find the answer
> here:
>
> In the list- and single-view the quantity-field is always empty, so the
> customer always has to click into the field, add a "1" and then click on
> "Order". Is there a way to set a default value for the quantity-field?
>
see the zk_products template or the BananaGuard
example_template_bill_de.tmpl.
<input type="Submit" name="order" value="in den Warenkorb"
onClick="if(!document.forms['###FORM_NAME###']['###FIELD_NAME###'].value!=''){document.forms['###FORM_NAME###']['###FIELD_NAME###'].value=1;};">
- Franz
More information about the TYPO3-project-tt-products
mailing list