title: WooCommerce: Add to Cart Button with Quantity - outside WooCommerce Loop
body: <p>In addition to the WooCommerce product home page, I coded a second page template (with the wordpress page template function <a href="https://developer.wordpress.org/themes/template-files-section/page-templates/" rel="nofollow noreferrer">https://developer.wordpress.org/themes/template-files-section/page-templates/</a>) that shows the woocommerce products in another schema. </p>
  
  <p>... we call it „speed buy“, there is no informations about the products, just a list with title, price and the add to cart button. </p>
  
  <p>My problem is, that we want to have not the normal add to cart button, but the add to cart button with quantity. Actually we call the add to cart button with</p>
  
  <pre><code>&lt;?php do_action( 'woocommerce_after_shop_loop_item' ); ?&gt;
  </code></pre>
  
  <p>But this is the normal one without quantity.. any ideas? </p>
  
  <p>Edit: We display the products on the page-template with a custom loop / WP_Query. </p>