<modification>

	<id>Drop down qty on product page</id>
	<version>1.0.0</version>
	<vqmver>1.0.2</vqmver>
	<author>qphoria</author>

	<file name="catalog/view/theme/default/template/product/product.tpl">
        <operation>
            <search position="replace"><![CDATA[
            <input type="text" name="quantity" size="3" value="<?php echo $minimum; ?>" />
            ]]></search>
            <add><![CDATA[
                <?php if ($maximum) {
                $max = $maximum;
                } else {
                $max = '20';
                }
                ?>
            <select name="quantity">
                <?php for ($i=$minimum; $i<=$max; $i++) { ?>
                <option value="<?php echo $i; ?>"><?php echo $i; ?></option>
                <?php } ?>
            </select>
            ]]></add>
        </operation>
	</file>
		
</modification>

<!--
<modification>	- This is the highest level of the file and there can only be one
<id>			- This is the name of the mod. Format: Free form text. (Informational)
<version>		- This is the version of the mod. Format: Number and Decimal (1.0.0) (Informational)
<author>		- This is the author of the mod. Format: Free form text (Informational)
<file>			- This is the name of the file to modify. Requires attribute "name" as relative filename (catalog/controller/product/product.php). There can be multiple
<operation>		- This is the wrapper of the actual operation occuring. There can be multiple operations to the same file.
<search>		- This is the first required step of the operation. Uses an optional attribute "position" set to before|after|replace. replace is default. One per operation. Use CDATA tags to wrap code.
<add>			- This is the second required step of the operation. Uses an optional attribute "trim" set to true|false to trim away whitespace and linebreaks. false is default. One per operation. Location of added data depends on the position of the <search> command. Use CDATA tags to wrap code.
<![CDATA[  ]]>	- These are called CDATA tags and they are used by xml to specify that the data between should not be evaluated.
-->