View Single Post
  #7  
Old 09-22-2006, 08:31 AM
 
brucew brucew is offline
 

Member
  
Join Date: Jan 2006
Posts: 26
 

Default Re: Add to cart in Product list?

Quote:
Originally Posted by inebriate
if you dont want the quantitfy dropdown box then edit buy_now.tpl and comment out the <SELECT ... </SELECT>

If I comment out the "<select>" portion of the code, items no longer add to the cart. When I un-comment them, they add again. I guess the problem is that it isn't adding at least 1 item of the product to the cart...?

Heres what I was doing on that front--
Code:
{*** COMMENT OUT QUANTITY *** <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> *** COMMENT OUT QUANTITY ***}

suggestions?
__________________
-----------------------------------------------
X-Cart Gold 4.0.17
Reply With Quote