You can try the same code as I've posted for your customer/main/product.tpl to remove the drop down and have only a text box for your customer to put any number up to 200000 (see attached image). This code works for v4.1.9.
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="6" maxlength="6" 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>-->
I changed the size values of quantity to allow up to 6 numbers, but you will also need to change the size of the quantity text box in the checkout page where the customer is allowed to 'update' their purchase. I haven't tested any of the checkout templates to guide you in changing the size value for the quantity text box, though the experts here can point you in that direction. Also, you will need to add 200000 to the maximum allowed in your admin>General Settings under Purchase limitations "Maximum allowed total quantity of products in an order (0 means no maximum limit):"
Good luck.
Quote:
Originally Posted by navjot2121
Using X-Cart Gold 4.1.10
I want to remove drop down, instead the customer can put any number. I also want to restrict to add the number to 200000, Can this be pssible?
|