Replace add to cart button on archives with add to cart button from single product page in WooCommerce

remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_single_add_to_cart', 10 );

You can add this snippet to your (child) theme's functions.php file.

No comments yet.

Leave a Reply