View Single Post
  #43  
Old 01-05-2009, 11:38 AM
 
ChristineP ChristineP is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 310
 

Default Re: Change product quantity from drop down to number input field

For v4.1.9.... I have this working now for the quantity to multiply when the text number is changed, and I was able to remove the "drop down".

In customer/main/product.tpl to add the text quantity:
<tr>
<td width="30%">{$lng.lbl_quantity}</td>
<td><input type="text" style="text-align:right" name="amount" size="4" maxlength="4" value="{$product.min_amount}"/></td>
</tr>
<!--<tr><td height="25" width="30%">{$lng.lbl_quantity}{if $product.min_amount gt 1}<br /><font class="ProductDetailsTitle">{$lng.txt_need_min_amo unt|substitute:"items":$product.min_amount}</font></td>-->

and comment out this section to remove the drop down:
<!--<select id="product_avail" name="amount"{if $active_modules.Product_Options ne '' && $product_options ne ''} onchange="check_wholesale(this.value);"{/if}>
{section name=quantity loop=$mq start=$start_quantity}
<option value="{%quantity.index%}"{if $smarty.get.quantity eq %quantity.index%} selected="selected"{/if}>{%quantity.index%}</option>
{/section}
</select>-->


Christine
__________________
______________
version 4.1.9 Gold
Reply With Quote