WooCommerce: Add to Cart Button with Quantity - outside WooCommerce Loop

admin

Administrator
Staff member
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.

... we call it „speed buy“, there is no informations about the products, just a list with title, price and the add to cart button.

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

Code:
&lt;?php do_action( 'woocommerce_after_shop_loop_item' ); ?&gt;

But this is the normal one without quantity.. any ideas?

Edit: We display the products on the page-template with a custom loop / WP_Query.