View Single Post
  #41  
Old 12-31-2008, 08:03 AM
 
ChristineP ChristineP is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 310
 

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

Hi Stuart,
I've been searching for this answer... Your code works!

Can you tell me if there's something different I need to do for v4.1.9 with the buy_now.tpl? I still need to remove the quantity drop down box. I found the section for buy_now.tpl, but in my v4.1.9 it's a little different than previously posted:
{if $product.min_amount le 1}
{assign var="start_quantity" value=1}
{else}
{assign var="start_quantity" value=$product.min_amount}
{/if}
{if $config.General.unlimited_products eq "Y"}
{math equation="x+y" assign="mq" x=$mq y=$start_quantity}
{/if}
<select name="amount">
{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>

...when I try to comment this out and add <input name=amount type="text" value="{$product.min_amount}" size="2" maxlength="2">
Nothing changes. Any suggestions?

Thank you,
Christine


Quote:
Originally Posted by stuartn
in product template

<tr>
<td width="30%">{$lng.lbl_quantity}</td>
<td><input type="text" name="amount" size="2" maxlength="2" value="{$product.min_amount}"/></td>
</tr>
Attached Thumbnails
Click image for larger version

Name:	QuantityBox.jpg
Views:	139
Size:	26.3 KB
ID:	1296  
__________________
______________
version 4.1.9 Gold

Last edited by ChristineP : 12-31-2008 at 08:20 AM. Reason: Added image
Reply With Quote