Jump to content

Quantity field in product-list


Recommended Posts

Hey,

I want to have a "Quantity" field above the "Add to cart" button on the product-listing pages. So far I've copy-pasted the following from product.tpl into product-list.tpl

               <!-- quantity wanted -->

quantity == 0) || $virtual} style="display:none;"{/if}>
{l s='Quantity :'}
                   <input type="text" name="qty" id="quantity_wanted" class="text" value="{if isset($quantityBackup)}{$quantityBackup|intval}{else}1{/if}" size="2" maxlength="3" />
                   <!-- +- knapper indsaettes her -->

               <!-- end of quantity wanted -->



and this shows the Quantity field correctly. But of course I must do something to make the "Add to cart" button react on this field. I've tried to copy-paste some more code from product.tpl and I've tried to add the parameter "qty" to the call of cart.php, but with no luck...

Any ideas...?

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
×
×
  • Create New...