sk
(@renegadesk)
Would be awesome, I’m looking to do something like this too. Have you had any luck yet?
The file single-product\add-to-cart\variable.php handles the processing, so would need to modify this then call it on the product archive page. If I have any luck I’ll post back but might be a bit too much for me.
I got this from a good friend in the past:
in /woocommerce/content-product.php
look for do_action( ‘woocommerce_after_shop_loop_item’ ); and replace it by :
add_action(‘woocommerce_after_shop_loop_item’,’woocommerce_template_single_add_to_cart’);
remove_action(‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’, 10 );
do_action( ‘woocommerce_after_shop_loop_item’ );
Edit the original and create a new file, same name: content-product.php and place it in the themes folder inside woocommerce subfolder. This will do the job, style it and done!