I need to display my cart when the cart button is clicked, allowing the user to update the quantity of the items in his cart using a dropdown list. I can get the amount of items he chose to add to his cart using the {item_qty} tag, but how do I display this in a dropdownlist (with the maximum number as the total in stock)?
i.e. if the re are 4 items in stock, the dropdownlist should display options 1 - 4.
My code so far:
<select name="items[{key}][item_qty]">
<option value="{item_qty}">{item_qty}</option>
</select>
This displays a dropdownlist with one value (1), but need to display the total in stock.