View Single Post
  #9  
Old 08-10-2007, 04:52 PM
 
zenkitty zenkitty is offline
 

Newbie
  
Join Date: Jun 2007
Posts: 1
 

Default Re: Drop down for quantity

I can't seem to get this to work on my site. I need to change the quantity dropdown on the product details page to increments of 500. I've added the step function into the section for the quantity dropdown in /customer/main/product.tpl.

This is what my code looks like:
PHP Code:
<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 step=500}
<
option value="{%quantity.index%}"{if $smarty.get.quantity eq %quantity.index%} selected="selected"{/if}>{%quantity.index%}</option>
{/
section


However, the quantity dropdown still shows increments of 1. Is there something I'm missing? Has something changed with the latest version of X-cart which means this code no longer works?

If anyone can help me with this, I'd be very grateful! Thanks!

Regards
Deb
__________________
X-Cart 4.1.8
Reply With Quote