Add quantity selector to the category page

The default Classic Commerce setup displays the add-to-cart button on the category page. The quantity selector is only available on the individual product page, or in the cart. This code adds a quantity selector onto the category page as well.