Add quantity field to product category pages in WooCommerce

// remove archives Add to Cart button
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
// replace it with the Add to Cart button from single product page
add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_single_add_to_cart', 30); 

No comments yet.

Leave a Reply