How to add quantity box in category pages opencart 2.2
<p>Im working on a 2.2 version of OpenChart (OC), and I'm new to OC, and I want to add quantity box in category pages and at featured products parts. </p>

<p>So I was trying to copy this code from 
<code>theme/default/template/product/product.tpl</code>, because I want the same result which OC have applied in product page.</p>

<pre><code>&lt;label class="control-label" for="input-quantity"&gt;&lt;?php echo $entry_qty; ?&gt;&lt;/label&gt;
          &lt;input type="text" name="quantity" value="&lt;?php echo $minimum; ?&gt;" size="2" id="input-quantity" class="form-control" /&gt;
          &lt;input type="hidden" name="product_id" value="&lt;?php echo $product_id; ?&gt;" /&gt;
</code></pre>

<p>and was trying to paste it in <code>theme/default/template/product/category.tpl</code> page below price but got an error <code>Undefined variable</code>. </p>

<p>From R&amp;D I got to know that I have to update it in <code>catalog/controller/category.tpl</code> page as well. I don't know what to do. </p>

<p>Please help me. Thanks alot in advance.</p>