View Single Post
  #1  
Old 12-04-2004, 07:01 AM
 
Bodhipaksa Bodhipaksa is offline
 

Advanced Member
  
Join Date: May 2004
Posts: 41
 

Default Getting rid of drop down quantity box

I want to get rid of the drop down quantity box so that the default added to the cart is 1 item. Following instructions in another post I tried replacing

Code:
Quote:
<select name=amount>
{if $product.min_amount le 1}
{assign var="start_quantity" value=1}
{else}
{assign var="start_quantity" value=$product.min_amount}
{/if}
{section name=quantity loop=$mq start=$start_quantity}
<option value="{%quantity.index%}" {if $smarty.get.quantity eq %quantity.index%}selected{/if}>{%quantity.index%}</option>
{/section}
</select>

with

Code:
Quote:
<input type="hidden" name="amount" value="1">

Unfortunately this didn't work. The drop down box stayed although whatever quantity you selected only one item would be added to the cart. Can anyone suggest a resolution?

Thanks!
__________________
X-Cart version: 4.3.1
Web server: Apache
Operation system: Linux
Reply With Quote