1and1 Help Centre Categories

print article

How to change the order quantity displayed in detailed view

By default, the quantity displayed is 1. But you can change it.

Edit template_detail.template file (eShop -> Shop design)
Change the value parameter to reflect the quantity:

&

lt;tr>
<td colspan="3" align="right" valign="top">
$font $item_variants $_font<br>
</td>
</tr>
<tr>
<td valign=top>
$font
<input type=text name="article[Count]" value=2 size=2>&nbsp;
$_font
<td align="left" valign="top" colspan="2">
<input type=image src="<% BUTTON_ORDER %>" border=0>&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
<tr>
<td></td>
<td width="100%" colspan="2"><br>$font

Note: Use size= to determine the width of the entry field.
You can also set up different quantities for different items. To do that, first
create an item attribute called "quantity" and assign it the value. Follow
FAQ: How to create attributes for item rulesAnd then replace the above code with value=$quantity
<tr>
<td colspan="3" align="right" valign="top">
$font $item_variants $_font<br>
</td>
</tr>
<tr>
<td valign=top>
$font
<input type=text name="article[Count]" value=$quantity size=2>&nbsp;
$_font
<td align="left" valign="top" colspan="2">
<input type=image src="<% BUTTON_ORDER %>" border=0>&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
<tr>
<td></td>
<td width="100%" colspan="2"><br>$font

Note: If you don't create an attribute for an item, then the field will
remain empty. To avoid this, insert the following in the template_detail.template
<?php if (!($quantity)) $quantity=1; php?> The code will look as follows:

&

lt;tr>
<td colspan="3" align="right" valign="top">
$font $item_variants $_font<br>
</td>
</tr>
<tr>
<td valign=top>
$font <?php if (!($quantity)) $quantity=1; php?><input type=text name="article[Count]" value=$quantity size=2>&nbsp;
$_font
<td align="left" valign="top" colspan="2">
<input type=image src="<% BUTTON_ORDER %>" border=0>&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
<tr>
<td></td>
<td width="100%" colspan="2"><br>$font